<rdar://problem/21910578> Second pass at [iOS] Keyboard shortcuts that take focus...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jul 2015 23:06:44 +0000 (23:06 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jul 2015 23:06:44 +0000 (23:06 +0000)
commit47baf9b112f906c5d76bc7939839d75f0b74ce9c
tree315ce0f9dcc2618d75bef46d080b17915f2f87bf
parent04bfba72b242381ca14a60dd8be313fe2a148dfc
<rdar://problem/21910578> Second pass at [iOS] Keyboard shortcuts that take focus away from the web view end up typing a letter into the newly focused field
https://bugs.webkit.org/show_bug.cgi?id=146732

Reviewed by Darin Adler.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _interpretKeyEvent:isCharEvent:]): Rather than checking if the view is
first responder, which it might still be when the Web Content processes invokes this
callback, check if we are in editable content before forwarding the event to the keyboard.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm