Add the F4 key to toggle the left panel.
This commit is contained in:
parent
42e9e29845
commit
ac2b71e1ed
1 changed files with 9 additions and 1 deletions
10
src/core.py
10
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):
|
||||
|
|
Loading…
Reference in a new issue