changeset 1954:b0fd6feb8c51

Bound KEYS_HIDE_PANELS key to hide panels (escape)
author Jorge Arellano Cid <jcid@dillo.org>
date Thu, 24 Mar 2011 18:23:15 -0300
parents 808ca0de6d8f
children 3066d77f278e
files src/ui.cc
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Wed Mar 23 11:42:35 2011 -0300
+++ b/src/ui.cc	Thu Mar 24 18:23:15 2011 -0300
@@ -769,10 +769,11 @@
       } else if (cmd == KEYS_GOTO) {
          focus_location();
          ret = 1;
-      } else if (cmd == KEYS_HIDE_PANELS &&
-                 get_panelmode() == UI_TEMPORARILY_SHOW_PANELS) {
-         //set_panelmode(UI_HIDDEN);
+      } else if (cmd == KEYS_HIDE_PANELS) {
+         fullscreen_toggle();
          ret = 1;
+         //if (get_panelmode() == UI_TEMPORARILY_SHOW_PANELS)
+         //   set_panelmode(UI_HIDDEN);
       } else if (cmd == KEYS_OPEN) {
          a_UIcmd_open_file(a_UIcmd_get_bw_by_widget(this));
          ret = 1;
@@ -1094,7 +1095,7 @@
 }
 
 /*
- * Ajust space for the findbar (if necessary) and show or remove it
+ * Adjust space for the findbar (if necessary) and show or remove it
  */
 void UI::findbar_toggle(bool add)
 {