diff --git a/README.md b/README.md index 23c8f3c..70244eb 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Generate your paths using the key binds below and once you are done export the p | Left Arrow | Next Path | | Right Arrow | Previous Path | | R | Reverse Robot Direction | -| Delete | Delete Selected Node | +| Delete / Backspace | Delete Selected Node | | Ctrl + Z | Undo Previous Action | If you accidentally do something wrong with the config, just delete it at `%appdata%/RRPathGen` for Windows, `~/Library/Application Support/RRPathGen/config.properties` for MacOS and `~/.RRPathGen/config.properties` for Linux. diff --git a/src/main/java/jarhead/DrawPanel.java b/src/main/java/jarhead/DrawPanel.java index 5e6fa84..3581bb1 100644 --- a/src/main/java/jarhead/DrawPanel.java +++ b/src/main/java/jarhead/DrawPanel.java @@ -465,7 +465,7 @@ private void keyInput(KeyEvent e){ main.undo(); } - if(e.getKeyCode() == KeyEvent.VK_DELETE){ + if(e.getKeyCode() == KeyEvent.VK_DELETE || e.getKeyCode() == KeyEvent.VK_BACK_SPACE){ if(main.currentN >= 0){ Node n = getCurrentManager().get(main.currentN); n.index = main.currentN;