[shpy-commit] r2889 - shpy/trunk/dist/shpy/ui_pygame
arigo@codespeak.net
arigo@codespeak.net
Fri, 23 Jan 2004 15:51:24 +0100 (MET)
Author: arigo
Date: Fri Jan 23 15:51:23 2004
New Revision: 2889
Modified:
shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
Log:
A few extra key bindings.
Modified: shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
==============================================================================
--- shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py (original)
+++ shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py Fri Jan 23 15:51:23 2004
@@ -231,6 +231,9 @@
def CTRL_K_e(self, event):
self.cursor.x = len(self.cursor.line.content)
+ K_HOME = CTRL_K_a
+ K_END = CTRL_K_e
+
def CTRL_K_k(self, event):
x, line = self.cursor.xline()
for c in line.content[x:]:
@@ -254,6 +257,12 @@
def K_RIGHT(self, event):
self.cursor.moveright()
+ def CTRL_K_UP(self, event):
+ self.firstline.moveup()
+
+ def CTRL_K_DOWN(self, event):
+ self.firstline.movedown()
+
def K_DELETE(self, event):
x, line = self.cursor.xline()
if x < len(line.content):