IDEA-CR-65080: Fix JBCefBrowser.myCefClient.addKeyboardHandler idea/202.6397.94 pycharm/202.6397.98
authorAnton Tarasov <anton.tarasov@jetbrains.com>
Wed, 15 Jul 2020 08:46:27 +0000 (11:46 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 27 Jul 2020 10:01:26 +0000 (10:01 +0000)
commitf0b3942b49880400994f62c064afd4ef909539eb
treeaf9faaf72639917a4e6fec355fa6fb0bb334a1d5
parentcf5a80f0d0ffbb635aa0171b799f5e569528cf0b
IDEA-CR-65080: Fix JBCefBrowser.myCefClient.addKeyboardHandler

1. remove the handler on dispose
2. replace onPreKeyEvent (not getting called with CEF ver. 81) with onKeyEvent

(cherry picked from commit ffc440e8394b77e45b8087e0535c1036029ba4aa)
(cherry picked from commit a41401296f629f4937ccdc96dc664a91dd30e7fb)

GitOrigin-RevId: f540459a857d318048d3ad853b68f27b70ec56b7
platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowser.java