Преглед на файлове

Fixed keyboard shortcuts in Xcode 9 simulator

Pressing Cmd+S in the Simulator normally just takes a screenshot, but in Xcode 9, it also triggers the default "s" keyboard shortcut which enables the FLEX Select tool. This is because the keyboard flags is ANDed with a logical NOT of UIKeyModifierShift instead of the bitwise inverse
nicked преди 9 години
родител
ревизия
b2f93f1752
променени са 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];
             }