Skip to content

Commit c2b52dd

Browse files
committed
Fix don't input Space with Shift using Japanese IME on Yosemite
https://gist.github.com/yamaya/dc21bb9a2c299c31bab8
1 parent 5e34509 commit c2b52dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MacVim/MMTextViewHelper.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ - (void)keyDown:(NSEvent *)event
187187
// with Ctrl-6 or Ctrl-^ when IM is active.
188188
[self doKeyDown:@"\x1e"];
189189
string = nil;
190+
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10)
191+
} else if ((flags & NSShiftKeyMask) && [string isEqualToString:@" "]) {
192+
// HACK! for Yosemite - Fix for Shift+Space inputing
193+
// do nothing
194+
#endif
190195
} else {
191196
// HACK! interpretKeyEvents: may call insertText: or
192197
// doCommandBySelector:, or it may swallow the key (most likely the

0 commit comments

Comments
 (0)