aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-18 17:23:16 +0100
committerjcid <devnull@localhost>2007-11-18 17:23:16 +0100
commit18b139e2f2e1cecb18d9d1e803ac5551b5a01d6c (patch)
treeb4515d88deb8a770da2a980ef685f38dd9e12f1b /src
parent266bd6b4df244c7cceae31015dde1afd5ef48642 (diff)
Bound Ctrl-R to reload.
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui.cc b/src/ui.cc
index e65b7e78..eee9d8ad 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -56,7 +56,8 @@ public:
};
/*
- * Disable: UpKey, DownKey, PageUpKey, PageDownKey and CTRL+{o,HomeKey,EndKey}
+ * Disable: UpKey, DownKey, PageUpKey, PageDownKey and
+ * CTRL+{o,r,HomeKey,EndKey}
*/
int NewInput::handle(int e)
{
@@ -64,7 +65,7 @@ int NewInput::handle(int e)
bool ctrl = event_state(CTRL);
_MSG("NewInput::handle event=%d", e);
- if (ctrl && (k == 'o' || k == HomeKey || k == EndKey))
+ if (ctrl && (k == 'o' || k == 'r' || k == HomeKey || k == EndKey))
return 0;
if ((e == KEY || e == KEYUP) &&
k == UpKey || k == DownKey || k == PageUpKey || k == PageDownKey) {
@@ -666,6 +667,9 @@ int UI::handle(int event)
} else if (event_key() == 'q') {
a_UIcmd_close_bw(user_data());
ret = 1;
+ } else if (event_key() == 'r') {
+ a_UIcmd_reload(user_data());
+ ret = 1;
} else if (event_key() == 's') {
a_UIcmd_search_dialog(user_data());
ret = 1;