macOS: Fix a regression that caused cmd+v to double up in the dvorak keyboard layout

Fixes #1652
This commit is contained in:
Kovid Goyal 2019-05-28 20:35:13 +05:30
parent d262f43b5b
commit 8e57fd93c6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
to occasionally freeze in certain situations, such as moving it between
monitors or transitioning from/to fullscreen (:iss:`1641`)
- macOS: Fix a regression that caused :kbd:`cmd+v` to double up in the dvorak
keyboard layout (:iss:`1652`)
0.14.0 [2019-05-24]
---------------------

View File

@ -319,7 +319,9 @@ - (void)render_frame_received:(id)displayIDAsID
static inline bool
is_cmd_period(NSEvent *event, NSEventModifierFlags modifierFlags) {
return event.keyCode == kVK_ANSI_Period && modifierFlags == NSEventModifierFlagCommand;
if (modifierFlags != NSEventModifierFlagCommand) return false;
if ([event.charactersIgnoringModifiers isEqualToString:@"."]) return true;
return false;
}
int _glfwPlatformInit(void)