changeset 1308:23900c1bdf8d

'save' key action
author corvid <corvid@lavabit.com>
date Tue, 08 Sep 2009 22:59:23 +0000
parents 6fd7ba446b06
children 76e88e7e2cfe
files ChangeLog src/keys.cc src/keys.hh src/keysrc src/ui.cc
diffstat 5 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Sep 08 20:19:45 2009 +0000
+++ b/ChangeLog	Tue Sep 08 22:59:23 2009 +0000
@@ -31,6 +31,8 @@
  - Fix segfault in Html_parse_doctype (BUG#918).
  - Change exit code used for bad command line argument.
  - By default, do not use proxy for localhost (BUG 921).
+ - Fix scrolling for text search.
+ - Added 'save' key action (not bound by default).
    Patches: corvid
 
 -----------------------------------------------------------------------------
--- a/src/keys.cc	Tue Sep 08 20:19:45 2009 +0000
+++ b/src/keys.cc	Tue Sep 08 22:59:23 2009 +0000
@@ -91,6 +91,7 @@
    { "fullscreen"   , KEYS_FULLSCREEN   , fltk::CTRL   , fltk::SpaceKey     },
    { "reload"       , KEYS_RELOAD       , fltk::CTRL   , 'r'                },
    { "stop"         , KEYS_STOP         , 0            , 0                  },
+   { "save"         , KEYS_SAVE         , 0            , 0                  },
    { "hide-panels"  , KEYS_HIDE_PANELS  , 0            , fltk::EscapeKey    },
    { "file-menu"    , KEYS_FILE_MENU    , fltk::ALT    , 'f'                },
    { "close-all"    , KEYS_CLOSE_ALL    , fltk::ALT    , 'q'                },
--- a/src/keys.hh	Tue Sep 08 20:19:45 2009 +0000
+++ b/src/keys.hh	Tue Sep 08 22:59:23 2009 +0000
@@ -30,6 +30,7 @@
    KEYS_FULLSCREEN,
    KEYS_RELOAD,
    KEYS_STOP,
+   KEYS_SAVE,
    KEYS_HIDE_PANELS,
    KEYS_FILE_MENU,
    KEYS_CLOSE_ALL,
--- a/src/keysrc	Tue Sep 08 20:19:45 2009 +0000
+++ b/src/keysrc	Tue Sep 08 22:59:23 2009 +0000
@@ -70,6 +70,9 @@
 # "stop" loading the page. 
 #(stop has no default binding)
 
+# "save" the current page.
+#(save has no default binding)
+
 #--------------------------------------------------------------------
 #                     MOTION COMMANDS
 #--------------------------------------------------------------------
--- a/src/ui.cc	Tue Sep 08 20:19:45 2009 +0000
+++ b/src/ui.cc	Tue Sep 08 22:59:23 2009 +0000
@@ -799,6 +799,9 @@
       } else if (cmd == KEYS_STOP) {
          a_UIcmd_stop(a_UIcmd_get_bw_by_widget(this));
          ret = 1;
+      } else if (cmd == KEYS_SAVE) {
+         a_UIcmd_save(a_UIcmd_get_bw_by_widget(this));
+         ret = 1;
       } else if (cmd == KEYS_FULLSCREEN) {
          panelmode_cb_i();
          ret = 1;