mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +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")
|
||||
public static List<Shortcut> attachKeyboardShortcuts(final CMatchUI matchUI) {
|
||||
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 List<Shortcut> list = new ArrayList<Shortcut>();
|
||||
|
||||
Reference in New Issue
Block a user