IDEA-63258 Database table editor: Escape does not work in cell editing mode in specific (most) cases

This commit is contained in:
Gregory.Shrago
2012-07-05 21:27:21 +04:00
parent 731f9f7465
commit a6674890a1
@@ -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() {