mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-63258 Database table editor: Escape does not work in cell editing mode in specific (most) cases
This commit is contained in:
@@ -53,6 +53,8 @@ public class BegTableUI extends BasicTableUI {
|
||||
public void installUI(JComponent c) {
|
||||
super.installUI(c);
|
||||
c.getActionMap().put(START_EDITING_ACTION_KEY, new StartEditingAction());
|
||||
// fix missing escape shortcut
|
||||
c.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("pressed ESCAPE"), "cancel");
|
||||
}
|
||||
|
||||
protected KeyListener createKeyListener() {
|
||||
|
||||
Reference in New Issue
Block a user