mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Broaden keyboard handler attachment; this hopefully fixes cases where keyboard interaction stops working entirely
This commit is contained in:
@@ -48,7 +48,7 @@ public class KeyboardShortcuts {
|
|||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public static List<Shortcut> attachKeyboardShortcuts(final CMatchUI matchUI) {
|
public static List<Shortcut> attachKeyboardShortcuts(final CMatchUI matchUI) {
|
||||||
final JComponent c = Singletons.getView().getFrame().getLayeredPane();
|
final JComponent c = Singletons.getView().getFrame().getLayeredPane();
|
||||||
final InputMap im = c.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
|
final InputMap im = c.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
|
||||||
final ActionMap am = c.getActionMap();
|
final ActionMap am = c.getActionMap();
|
||||||
|
|
||||||
final List<Shortcut> list = new ArrayList<Shortcut>();
|
final List<Shortcut> list = new ArrayList<Shortcut>();
|
||||||
|
|||||||
Reference in New Issue
Block a user