Inherits from NSObject
Declared in RCTKeyCommands.h

Overview

Copyright © 2015-present, Facebook, Inc. All rights reserved.

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.

Class Methods

sharedInstance

+ (instancetype)sharedInstance

Instance Methods

isKeyCommandRegisteredForInput:modifierFlags:

- (BOOL)isKeyCommandRegisteredForInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)flags
Discussion

Check if a command is registered.

Declared In

RCTKeyCommands.h

registerKeyCommandWithInput:modifierFlags:action:

- (void)registerKeyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)flags action:(void ( ^ ) ( UIKeyCommand *command ))block
Discussion

Register a keyboard command.

Declared In

RCTKeyCommands.h

unregisterKeyCommandWithInput:modifierFlags:

- (void)unregisterKeyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)flags
Discussion

Unregister a keyboard command.

Declared In

RCTKeyCommands.h