mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix some shortcut keys not working on macOS with Japanese input
Differential Revision: https://developer.blender.org/D13414
This commit is contained in:
parent
24a79289b0
commit
8b44b756d8
1 changed files with 8 additions and 0 deletions
|
|
@ -510,6 +510,14 @@
|
|||
- (void)checkKeyCodeIsControlChar:(NSEvent *)event
|
||||
{
|
||||
ime.state_flag &= ~GHOST_IME_KEY_CONTROL_CHAR;
|
||||
|
||||
/* Don't use IME for command and ctrl key combinations, these are shortcuts. */
|
||||
if ([event modifierFlags] & (NSEventModifierFlagCommand | NSEventModifierFlagControl)) {
|
||||
ime.state_flag |= GHOST_IME_KEY_CONTROL_CHAR;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Don't use IME for these control keys. */
|
||||
switch ([event keyCode]) {
|
||||
case kVK_ANSI_KeypadEnter:
|
||||
case kVK_ANSI_KeypadClear:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue