summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-02-25 02:53:16 +0100
committermathieui <mathieui@mathieui.net>2012-02-25 02:53:16 +0100
commita1cc350f77962af5fc80cbd98a9435e7836b957d (patch)
tree5ba6d850d77b8acd1ba5548ab870f4cf3d414fe1 /src/tabs.py
parenta98cb42cf0e567e9c25dd5c46b3672e632749907 (diff)
downloadpoezio-a1cc350f77962af5fc80cbd98a9435e7836b957d.tar.gz
poezio-a1cc350f77962af5fc80cbd98a9435e7836b957d.tar.bz2
poezio-a1cc350f77962af5fc80cbd98a9435e7836b957d.tar.xz
poezio-a1cc350f77962af5fc80cbd98a9435e7836b957d.zip
Second and third of #2336
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 78663419..8760abe8 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2589,9 +2589,14 @@ class XMLTab(Tab):
self.key_func['^I'] = self.completion
self.key_func["KEY_DOWN"] = self.on_scroll_down
self.key_func["KEY_UP"] = self.on_scroll_up
+ self.key_func["^K"] = self.on_freeze
self.key_func["/"] = self.on_slash
self.resize()
+ def on_freeze(self):
+ self.text_win.toggle_lock()
+ self.refresh()
+
def on_slash(self):
"""
'/' is pressed, activate the input