summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-20 08:40:48 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-25 11:42:50 +0100
commitac2b71e1eda5423dcfb852c147bafc66fd119703 (patch)
treeeca0f9651337c1bc06475a89cdaf8bd4e94c1fa4 /src
parent42e9e29845403ad92f5ea4f71443aa7ef35148df (diff)
downloadpoezio-ac2b71e1eda5423dcfb852c147bafc66fd119703.tar.gz
poezio-ac2b71e1eda5423dcfb852c147bafc66fd119703.tar.bz2
poezio-ac2b71e1eda5423dcfb852c147bafc66fd119703.tar.xz
poezio-ac2b71e1eda5423dcfb852c147bafc66fd119703.zip
Add the F4 key to toggle the left panel.
Diffstat (limited to 'src')
-rw-r--r--src/core.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 3c7b70dd..b3b13fe4 100644
--- a/src/core.py
+++ b/src/core.py
@@ -149,6 +149,7 @@ class Core(object):
"KEY_F(6)": self.rotate_rooms_right,
"^N": self.rotate_rooms_right,
'kRIT3': self.rotate_rooms_right,
+ "KEY_F(4)": self.toggle_left_pane,
"KEY_F(7)": self.shrink_information_win,
"KEY_F(8)": self.grow_information_win,
"KEY_RESIZE": self.call_for_resize,
@@ -306,6 +307,14 @@ class Core(object):
timed_event = timed_events.DelayedEvent(time, self.shrink_information_win, size)
self.add_timed_event(timed_event)
+ def toggle_left_pane(self):
+ """
+ Enable/disable the left panel.
+ """
+ enabled = config.get('enable_vertical_tab_list', 'false')
+ config.set('enable_vertical_tab_list', 'false' if enabled == 'true' else 'true')
+ self.call_for_resize()
+
def get_status(self):
"""
Get the last status that was previously set
@@ -834,7 +843,6 @@ class Core(object):
Completely erase and redraw the screen
"""
self.stdscr.clear()
- self.stdscr.refresh()
self.refresh_window()
def call_for_resize(self):