Просмотр исходного кода

Merge pull request #187 from nicked/patch-1

Fixed keyboard shortcuts in Xcode 9 simulator
Ryan Olson лет назад: 9
Родитель
Сommit
b0085cae7d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Classes/Utility/FLEXKeyboardShortcutManager.m

+ 1 - 1
Classes/Utility/FLEXKeyboardShortcutManager.m

@@ -260,7 +260,7 @@ static const long kFLEXCommandKeyCode = 0xe3;
             dispatch_block_t actionBlock = self.actionsForKeyInputs[exactMatch];
             
             if (!actionBlock) {
-                FLEXKeyInput *shiftMatch = [FLEXKeyInput keyInputForKey:modifiedInput flags:flags&(!UIKeyModifierShift)];
+                FLEXKeyInput *shiftMatch = [FLEXKeyInput keyInputForKey:modifiedInput flags:flags&(~UIKeyModifierShift)];
                 actionBlock = self.actionsForKeyInputs[shiftMatch];
             }