Skip to content

Commit

Permalink
chore: npm version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
azimgd committed Apr 19, 2023
1 parent 05bb7aa commit ff2d243
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ PODS:
- React-jsinspector (0.70.4)
- React-logger (0.70.4):
- glog
- react-native-key-command (0.9.1):
- react-native-key-command (1.0.0):
- React-Core
- React-perflogger (0.70.4)
- React-RCTActionSheet (0.70.4):
Expand Down Expand Up @@ -562,7 +562,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 4a893fc8f683b91befcaf56c44ad8be4506b6828
React-jsinspector: 1d5a9e84e419a57cabc23249aec3d837d1b03a80
React-logger: f8071ad48248781d5afdb8a07f778758529d3019
react-native-key-command: e49d6e44d44705779696d8d3a5ac6b9e3a198941
react-native-key-command: 0b3aa7c9f5c052116413e81dce33a3b2153a6c5d
React-perflogger: 5e41b01b35d97cc1b0ea177181eb33b5c77623b6
React-RCTActionSheet: 48949f30b24200c82f3dd27847513be34e06a3ae
React-RCTAnimation: 96af42c97966fcd53ed9c31bee6f969c770312b6
Expand Down
36 changes: 18 additions & 18 deletions ios/KeyCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
extern NSDictionary *ModifierFlagsConstants;

NSDictionary *ModifierFlagsConstants = @{
@"keyModifierCapsLock": @(UIKeyModifierAlphaShift),
@"keyModifierShift": @(UIKeyModifierShift),
@"keyModifierControl": @(UIKeyModifierControl),
@"keyModifierOption": @(UIKeyModifierAlternate),
@"keyModifierCommand": @(UIKeyModifierCommand),
@"keyModifierCapsLock": @(UIKeyModifierAlphaShift),
@"keyModifierShift": @(UIKeyModifierShift),
@"keyModifierControl": @(UIKeyModifierControl),
@"keyModifierOption": @(UIKeyModifierAlternate),
@"keyModifierCommand": @(UIKeyModifierCommand),

@"keyModifierControlOption": @(UIKeyModifierControl | UIKeyModifierAlternate),
@"keyModifierControlOptionCommand": @(UIKeyModifierControl | UIKeyModifierAlternate | UIKeyModifierCommand),
@"keyModifierControlCommand": @(UIKeyModifierControl | UIKeyModifierCommand),
@"keyModifierOptionCommand": @(UIKeyModifierAlternate | UIKeyModifierCommand),
@"keyModifierShiftCommand": @(UIKeyModifierShift | UIKeyModifierCommand),
@"keyModifierNumericPad": @(UIKeyModifierNumericPad),
@"keyInputUpArrow": UIKeyInputUpArrow,
@"keyInputDownArrow": UIKeyInputDownArrow,
@"keyInputLeftArrow": UIKeyInputLeftArrow,
@"keyInputRightArrow": UIKeyInputRightArrow,
@"keyInputEscape": UIKeyInputEscape,
@"keyInputEnter": @"\r",
@"keyModifierControlOption": @(UIKeyModifierControl | UIKeyModifierAlternate),
@"keyModifierControlOptionCommand": @(UIKeyModifierControl | UIKeyModifierAlternate | UIKeyModifierCommand),
@"keyModifierControlCommand": @(UIKeyModifierControl | UIKeyModifierCommand),
@"keyModifierOptionCommand": @(UIKeyModifierAlternate | UIKeyModifierCommand),
@"keyModifierShiftCommand": @(UIKeyModifierShift | UIKeyModifierCommand),
@"keyModifierNumericPad": @(UIKeyModifierNumericPad),

@"keyInputUpArrow": UIKeyInputUpArrow,
@"keyInputDownArrow": UIKeyInputDownArrow,
@"keyInputLeftArrow": UIKeyInputLeftArrow,
@"keyInputRightArrow": UIKeyInputRightArrow,
@"keyInputEscape": UIKeyInputEscape,
@"keyInputEnter": @"\r",
};

@interface KeyCommand : RCTEventEmitter <RCTBridgeModule>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-key-command",
"version": "0.9.1",
"version": "1.0.0",
"description": "A cross-platform module that registers and listens to specified keyboard events, dispatching the payload to JavaScript",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit ff2d243

Please sign in to comment.