From 5555556af4ec386cade917ddf92a659694ba7320 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 9 Mar 2008 21:01:53 +0000 Subject: [PATCH] Press ; to enter a command without arguments. --- rox/shell/shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rox/shell/shell.py b/rox/shell/shell.py index 23b91a3..c8eb73b 100644 --- a/rox/shell/shell.py +++ b/rox/shell/shell.py @@ -274,6 +274,10 @@ class ShellView: if kev.keyval == keysyms.comma: self.command_argv.activate(self.command_argv.args[0]) return True + elif kev.keyval == keysyms.semicolon and len(self.command_argv.args) == 2: + self.command_argv.set_args([CommandArgument(self)]) + self.command_argv.widgets[0].grab_focus() + return True if self.iv.flags() & gtk.HAS_FOCUS: if self.iv.event(kev): -- 2.11.4.GIT