Added capital characters as valid keys for actions
@@ -76,7 +76,9 @@ class ConfirmClose(app.controller.Controller):
commandSet = initCommandSet(self, textBuffer)
commandSet.update({
ord('n'): self.closeFile,
+ ord('N'): self.closeFile,
ord('y'): self.writeOrConfirmOverwrite,
+ ord('Y'): self.writeOrConfirmOverwrite,
})
self.commandSet = commandSet
self.commandDefault = self.exitConfirmationPrompt
@@ -91,6 +93,7 @@ class ConfirmOverwrite(app.controller.Controller):
commandSet = initCommandSet(self, textBuffer)
commandSet.update({
ord('y'): self.overwriteHostFile,
+ ord('Y'): self.overwriteHostFile,
})
self.commandSet = commandSet
self.commandDefault = self.exitConfirmationPrompt
@@ -136,8 +139,11 @@ class InteractiveGoto(app.editor.InteractiveGoto):
CTRL_J: self.changeToHostWindow,
CTRL_S: self.writeOrConfirmOverwrite,
ord('b'): self.gotoBottom,
+ ord('B'): self.gotoBottom,
ord('h'): self.gotoHalfway,
+ ord('H'): self.gotoHalfway,
ord('t'): self.gotoTop,
+ ord('T'): self.gotoTop,
})
self.commandSet = commandSet
self.commandDefault = self.textBuffer.insertPrintable
@@ -207,7 +213,9 @@ class InteractiveQuit(app.controller.Controller):
commandSet.update({
#KEY_F1: self.info,
ord('n'): host.quitNow,
+ ord('N'): host.quitNow,
ord('y'): self.writeOrConfirmOverwrite,
+ ord('Y'): self.writeOrConfirmOverwrite,
})
self.commandSet = commandSet
self.commandDefault = self.exitConfirmationPrompt
