Skip to content

Commit

Permalink
Fix keypresses when using Screen Sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Dec 28, 2019
1 parent d0e31f2 commit 93e869a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Src/VimMac/AlternateKeyUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,14 @@ bool IKeyUtil.TryConvertSpecialToKeyInput(NSEvent theEvent, out KeyInput keyInpu
{
return true;
}
var noModifiers = (NSEventModifierMask)256;

// If the key is not a pure alt or shift key combination and doesn't
// correspond to an ASCII control key (like <C-^>), we need to convert it here.
// This is needed because key combinations like <C-;> won't be passed to
// TextInput, because they can't be represented as system or control text.
// We just have to be careful not to shadow any keys that produce text when
// combined with the AltGr key.
if (modifierKeys != 0
&& modifierKeys != NSEventModifierMask.AlternateKeyMask
if (modifierKeys != NSEventModifierMask.AlternateKeyMask
&& modifierKeys != NSEventModifierMask.ShiftKeyMask)
{
switch (key)
Expand Down

0 comments on commit 93e869a

Please sign in to comment.