mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 23:18:02 -04:00
The backspace key works like the del key.
This commit is contained in:
parent
dbb4ad6932
commit
cf600083d7
@ -2,6 +2,7 @@ Release Notes
|
||||
|
||||
planed as v0.12
|
||||
- added the possibility to open a circuit from the command line
|
||||
- The backspace key works like the delete key.
|
||||
|
||||
v0.11, released on 20. Apr 2017
|
||||
- Added floating gate FETs.
|
||||
|
@ -168,9 +168,10 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
|
||||
}
|
||||
};
|
||||
|
||||
getInputMap().put(KeyStroke.getKeyStroke("ESCAPE"), ESC_ACTION);
|
||||
getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), ESC_ACTION);
|
||||
getActionMap().put(ESC_ACTION, escapeAction);
|
||||
getInputMap().put(KeyStroke.getKeyStroke("DELETE"), DEL_ACTION);
|
||||
getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), DEL_ACTION);
|
||||
getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0), DEL_ACTION);
|
||||
getActionMap().put(DEL_ACTION, deleteAction);
|
||||
getInputMap().put(KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()), "myCopy");
|
||||
getActionMap().put("myCopy", copyAction);
|
||||
|
Loading…
x
Reference in New Issue
Block a user