changeset 54:74988212be40

Bound Ctrl-R to reload.
author jcid
date Sun, 18 Nov 2007 17:23:16 +0100
parents 38bb2f150cda
children a1f38544fab6
files ChangeLog src/ui.cc
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Nov 17 21:14:55 2007 +0100
+++ b/ChangeLog	Sun Nov 18 17:23:16 2007 +0100
@@ -80,6 +80,8 @@
    Patches: Johannes Hofmann
 +- Improved FLTK library detection at configure time.
    Patch: Frank Gevaerts
++- Bound Ctrl-R to reload.
+   Patch: Jeremy Henty
 
  TODO:
 
--- a/src/ui.cc	Sat Nov 17 21:14:55 2007 +0100
+++ b/src/ui.cc	Sun Nov 18 17:23:16 2007 +0100
@@ -56,7 +56,8 @@
 };
 
 /*
- * 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 @@
    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 @@
          } 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;