InputMap/ActionMap behavior modified in IntelliJ?
Hi,
I've defined several custom inputmap/actionmap within my plugin: for example, VK_HOME will bring the cursor at the beginning of the line instead of the beginning of the document. It works fine with IntelliJ 5 and 6. However, starting with version 7, VK_HOME will always bring the cursor at the beginning of the file: it seems to ignore my inputmap/actionmap (I'm using a custom editor).
Any idea why?
Jean
请先登录再写评论。
Hello Jean,
The standard edit actions in text controls are now hooked through ActionManager,
which takes precedence over the Swing inputmap keyboard bindings. You need
to provide actions for your custom navigation and register shortcuts for
them via AnAction.registerCustomShortcutSet(ShortcutSet, yourComponent).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks, it works now.