Changeset 12639 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/DisableShortcutsOnFocusGainedTextField.java
- Timestamp:
- 2017-08-25T01:37:31+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/DisableShortcutsOnFocusGainedTextField.java
r8929 r12639 17 17 import org.openstreetmap.josm.Main; 18 18 import org.openstreetmap.josm.actions.JosmAction; 19 import org.openstreetmap.josm.gui.MainApplication; 19 20 import org.openstreetmap.josm.tools.Pair; 20 21 import org.openstreetmap.josm.tools.Shortcut; … … 147 148 KeyStroke ks = shortcut.getKeyStroke(); 148 149 if (hasToBeDisabled(ks)) { 149 Action action = Main.getRegisteredActionShortcut(shortcut); 150 Action action = MainApplication.getRegisteredActionShortcut(shortcut); 150 151 if (action != null) { 151 Main.unregisterActionShortcut(action, shortcut); 152 MainApplication.unregisterActionShortcut(action, shortcut); 152 153 unregisteredActionShortcuts.add(new Pair<>(action, shortcut)); 153 154 } … … 182 183 protected void restoreActionShortcuts() { 183 184 for (Pair<Action, Shortcut> p : unregisteredActionShortcuts) { 184 Main.registerActionShortcut(p.a, p.b); 185 MainApplication.registerActionShortcut(p.a, p.b); 185 186 } 186 187 unregisteredActionShortcuts.clear();
Note:
See TracChangeset
for help on using the changeset viewer.
