mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 13:57:51 +00:00
manhole: add more keybindings
This commit is contained in:
parent
9fdc741657
commit
6e09b5ddb9
@ -81,8 +81,15 @@ class AuthorizedKeysChecker(conchc.SSHPublicKeyDatabase):
|
||||
class ModifiedColoredManhole(manhole.ColoredManhole):
|
||||
def connectionMade(self):
|
||||
manhole.ColoredManhole.connectionMade(self)
|
||||
# look in twisted.conch.recvline.RecvLine for hints
|
||||
self.keyHandlers["\x08"] = self.handle_BACKSPACE
|
||||
self.keyHandlers["\x15"] = self.handle_KILLLINE
|
||||
self.keyHandlers["\x01"] = self.handle_HOME
|
||||
self.keyHandlers["\x04"] = self.handle_DELETE
|
||||
self.keyHandlers["\x05"] = self.handle_END
|
||||
self.keyHandlers["\x0b"] = self.handle_KILLLINE # really kill-to-end
|
||||
#self.keyHandlers["\xe2"] = self.handle_BACKWARDS_WORD # M-b
|
||||
#self.keyHandlers["\xe6"] = self.handle_FORWARDS_WORD # M-f
|
||||
|
||||
def handle_KILLLINE(self):
|
||||
self.handle_END()
|
||||
|
Loading…
Reference in New Issue
Block a user