summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keys.cc1
-rw-r--r--src/keys.hh1
-rw-r--r--src/keysrc3
-rw-r--r--src/ui.cc3
4 files changed, 8 insertions, 0 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 44e2aeba..54194334 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -91,6 +91,7 @@ static const KeyBinding_t default_keys[] = {
{ "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' },
diff --git a/src/keys.hh b/src/keys.hh
index 218f15e9..d234838c 100644
--- a/src/keys.hh
+++ b/src/keys.hh
@@ -30,6 +30,7 @@ typedef enum {
KEYS_FULLSCREEN,
KEYS_RELOAD,
KEYS_STOP,
+ KEYS_SAVE,
KEYS_HIDE_PANELS,
KEYS_FILE_MENU,
KEYS_CLOSE_ALL,
diff --git a/src/keysrc b/src/keysrc
index 0634f70f..a8aca344 100644
--- a/src/keysrc
+++ b/src/keysrc
@@ -70,6 +70,9 @@
# "stop" loading the page.
#(stop has no default binding)
+# "save" the current page.
+#(save has no default binding)
+
#--------------------------------------------------------------------
# MOTION COMMANDS
#--------------------------------------------------------------------
diff --git a/src/ui.cc b/src/ui.cc
index 44b4f823..d5ee1adf 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -799,6 +799,9 @@ int UI::handle(int event)
} 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;