Skip to content

Commit

Permalink
Delete and Backspace now both work for MacOS and Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Honyant committed Dec 4, 2022
1 parent 3591884 commit 92029ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jarhead/DrawPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 92029ba

Please sign in to comment.