Dialog shortcuts: RootPane vs Child(TextField) Follow
Answered
Why root's shortcut override same shortcut of his child (TextField) when the last one is focused.
protected JComponent createCenterPanel() {
...
initShortcuts();
...
}
Undo for TextField doesn't work. Focus doesn't matter, system perform rootpane's action only.
Please sign in to leave a comment.
Default 'undo' action is a global action, it's not TextField-bound. If you assign any shortcut to a component or it's ancestor in component hierarchy, it will have precedence over global shortcut.