diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-11 21:19:55 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-11 21:19:55 -0400 |
commit | 60f47594942f0f99c6cfa515a91e8137d261ddff (patch) | |
tree | 22502a95e385b72f3e4166e8c58ae8d8f2af76c5 /src | |
parent | de8460cf9c08ece4f51dbfdc41fd56cef98b41cc (diff) |
change: Add WASD keys for widget selection movement
Diffstat (limited to 'src')
-rw-r--r-- | src/app.rs | 8 | ||||
-rw-r--r-- | src/constants.rs | 17 |
2 files changed, 17 insertions, 8 deletions
@@ -1001,10 +1001,10 @@ impl App { self.help_dialog_state.is_showing_help = true; self.is_force_redraw = true; } - 'H' => self.move_widget_selection_left(), - 'L' => self.move_widget_selection_right(), - 'K' => self.move_widget_selection_up(), - 'J' => self.move_widget_selection_down(), + 'H' | 'A' => self.move_widget_selection_left(), + 'L' | 'D' => self.move_widget_selection_right(), + 'K' | 'W' => self.move_widget_selection_up(), + 'J' | 'S' => self.move_widget_selection_down(), ' ' => self.on_space(), '+' => self.zoom_in(), '-' => self.zoom_out(), diff --git a/src/constants.rs b/src/constants.rs index e72eb82a..26f97381 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -51,15 +51,24 @@ pub const HELP_CONTENTS_TEXT: [&str; 6] = [ "5 - Battery widget", ]; -pub const GENERAL_HELP_TEXT: [&str; 20] = [ +pub const GENERAL_HELP_TEXT: [&str; 29] = [ "1 - General\n", "q, Ctrl-c Quit\n", "Esc Close dialog windows, search, widgets, or exit expanded mode\n", "Ctrl-r Reset display and any collected data\n", "f Freeze/unfreeze updating with new data\n", - "Ctrl-Arrow \n", - "Shift-Arrow Move to a different widget\n", - "H/J/K/L \n", + "Ctrl-Left, \n", + "Shift-Left, Move widget selection left\n", + "H, A \n", + "Ctrl-Right, \n", + "Shift-Right, Move widget selection right\n", + "L, D \n", + "Ctrl-Up, \n", + "Shift-Up, Move widget selection up\n", + "K, W \n", + "Ctrl-Down, \n", + "Shift-Down, Move widget selection down\n", + "J, S \n", "Left, h Move left within widget\n", "Down, j Move down within widget\n", "Up, k Move up within widget\n", |