Skip to content

Commit

Permalink
ui: Fix regression in latest commit (Did not reset to top on new search)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Jan 18, 2012
1 parent 65a1efd commit 831ec7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kupfer/ui/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,7 @@ def _entry_key_press(self, entry, event):
self._update_active()
"""

# exit here if it's not a special key
"""
if keyv not in self.keys_sensible:
## if typing with shift key, switch to action pane
if not text_mode and use_command_keys and shift_mask:
uchar = gtk.gdk.keyval_to_unicode(keyv)
Expand All @@ -1178,6 +1176,9 @@ def _entry_key_press(self, entry, event):
self.switch_current()
return False
"""
# exit here if it's not a special key
if keyv not in self.keys_sensible:
return False
self._reset_to_toplevel = False

if keyv == key_book["Escape"]:
Expand Down

0 comments on commit 831ec7c

Please sign in to comment.