Don't invoke search with Ctrl key pressed
This makes it possible to use shortcuts like Ctrl+A in the episode list, which is what most users would expect to happen.
This commit is contained in:
parent
fe87c0f89e
commit
f12e6f67d8
1 changed files with 8 additions and 0 deletions
|
@ -569,6 +569,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
self.hide_podcast_search()
|
||||
elif gpodder.ui.fremantle and event.keyval == gtk.keysyms.BackSpace:
|
||||
self.hide_podcast_search()
|
||||
elif event.state & gtk.gdk.CONTROL_MASK:
|
||||
# Don't handle type-ahead when control is pressed (so shortcuts
|
||||
# with the Ctrl key still work, e.g. Ctrl+A, ...)
|
||||
return True
|
||||
else:
|
||||
unicode_char_id = gtk.gdk.keyval_to_unicode(event.keyval)
|
||||
if unicode_char_id == 0:
|
||||
|
@ -654,6 +658,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
self.hide_episode_search()
|
||||
elif gpodder.ui.fremantle and event.keyval == gtk.keysyms.BackSpace:
|
||||
self.hide_episode_search()
|
||||
elif event.state & gtk.gdk.CONTROL_MASK:
|
||||
# Don't handle type-ahead when control is pressed (so shortcuts
|
||||
# with the Ctrl key still work, e.g. Ctrl+A, ...)
|
||||
return False
|
||||
else:
|
||||
unicode_char_id = gtk.gdk.keyval_to_unicode(event.keyval)
|
||||
if unicode_char_id == 0:
|
||||
|
|
Loading…
Reference in a new issue