We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfab894 commit 2e9d0b0Copy full SHA for 2e9d0b0
1 file changed
src/com/modsim/gui/view/ViewUtil.java
@@ -401,14 +401,14 @@ public void keyPressed(KeyEvent e) {
401
View v = Main.ui.view;
402
403
// Cancel tool usage on escape press
404
- if (e.getKeyChar() == KeyEvent.VK_ESCAPE) {
+ if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
405
if (v.curTool != null) {
406
v.curTool.cancel();
407
v.curTool = null;
408
}
409
410
// Delete selection
411
- else if (e.getKeyChar() == KeyEvent.VK_DELETE) {
+ else if (e.getKeyCode() == KeyEvent.VK_DELETE) {
412
Main.selection.deleteAll();
413
414
// Pass to tool
0 commit comments