Use slash key to grab filter focus

This may be more natural to people familiar with vim.
This commit is contained in:
Bryan Schumaker 2010-12-29 13:29:27 -05:00
parent c17126553f
commit f6b20e345a
1 changed files with 3 additions and 2 deletions

View File

@ -27,14 +27,14 @@ def key_press(widget, event):
return
if name == "space":
LS.controls.toggle_play()
elif name == "slash":
filter.grab_focus()
elif name == "Left":
LS.controls.seek_backward()
elif name == "Right":
LS.controls.seek_forward()
elif name == "d":
ocarina.footer.down_button()
elif name == "f":
filter.grab_focus()
elif name == "g":
body.cur_page_goto()
elif name == "n":
@ -44,6 +44,7 @@ def key_press(widget, event):
elif name == "u":
ocarina.footer.up_button()
else:
#print name
return False
widget.emit_stop_by_name("key-press-event")
return True