4

Part of arrow keys don't do anything on some pages. For example on CodeMirror editor: http://codemirror.net/demo/fullscreen.html

How do you support all arrow keys from an external keyboard in UIWebView?

Dmitry
  • 14,306
  • 23
  • 105
  • 189
  • This is solution for similar problem on native UI: http://stackoverflow.com/questions/7980447/how-can-i-respond-to-external-keyboard-arrow-keys/8036524#8036524 It works for both external and on-screen keyboard. – jzhang Jan 04 '14 at 12:04
  • And how it's supposed to work with `UIWebView`? No relation to the question at all. – Dmitry Jan 04 '14 at 12:06
  • It's a direction on how it works. You can add a text view to the master view, and pass keyboard events to UIWebView – jzhang Jan 04 '14 at 12:41
  • But how to pass other key events to the `UIWebView`? – Dmitry Jan 04 '14 at 12:52

1 Answers1

-1

In answer to your question on my post in another thread How can I respond..., the keyCommands property is a property on UIResponder and UIWebView inherits from UIResponder so I can see no reason why it won't work.

Community
  • 1
  • 1
amergin
  • 3,106
  • 32
  • 44
  • On `UIWebView` `keyCommands` works but `@selectors` don't execute. How can I solve this? – Dmitry Jan 09 '14 at 19:13
  • So how are you seeing that keyCommands works if your @selectors don't execute? – amergin Jan 09 '14 at 19:34
  • It seems your ^^ method only works while in the TextField. What if I want the "Right Arrow" to close my web view or move to my History for instance? – DTDev Feb 05 '14 at 19:07