Skip to content

Commit

Permalink
Merge pull request #17 from RnardHa/master
Browse files Browse the repository at this point in the history
Update Keyboard Shortcuts
  • Loading branch information
RnardHa authored Oct 4, 2018
2 parents 0bbddb2 + 5f6e21e commit 537ec22
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/seedu/address/ui/CommandBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,27 @@ private void handleKeyPress(KeyEvent keyEvent) {

navigateToPreviousInput();
break;

case DOWN:
keyEvent.consume();
navigateToNextInput();
break;

case F:
// CONTROL + 'KeyCode' will allow the user to use keyboard shortcuts
keyEvent.consume();
if (keyEvent.isControlDown()) {
replaceText("Find ");
}
break;

case Q:
keyEvent.consume();
if (keyEvent.isControlDown()) {
Platform.exit();
}
break;

default:
// let JavaFx handle the keypress
}
Expand Down

0 comments on commit 537ec22

Please sign in to comment.