Custom Keyboard Shortcut

PhilipSharpPhilipSharp CNMember ✭✭
edited July 2017 in Xamarin.iOS

The current Xamarin bind to UIKeyCommand Initialization is

Export ("keyCommandWithInput:modifierFlags:action:discoverabilityTitle:"), Introduced (PlatformName.iOS, 9, 0, PlatformArchitecture.None, null), CompilerGenerated]
public static UIKeyCommand Create (NSString keyCommandInput, UIKeyModifierFlags modifierFlags, Selector action, NSString discoverabilityTitle);

Can you please help to let me know?

  • How to set the modifierFlags para be empty? It's possible if we are using Swift / Objc. For example, I just want to use Escape key (without modifier flags) to close popover view.
  • How to set the display alternative? For example, the command key is "=", I'd like to show it as "+" (but not need to click "shift")

It seems Xamarin binding does not support preceding requests.

Thanks

Answers

Sign In or Register to comment.