Commit 65af00d1 authored by Vadim Rutkovsky's avatar Vadim Rutkovsky

Revert "Support different keyboard layouts in search on keypress function"

This reverts commit e3260ff3.
parent 2504c837
......@@ -237,9 +237,8 @@ class Window(Gtk.ApplicationWindow):
self.toolbar.searchbar.show_bar(False)
if self.toolbar._selectionMode:
self.toolbar.set_selection_mode(False)
elif (event.state & modifiers) == 0 | Gdk.ModifierType.SHIFT_MASK and \
GLib.unichar_isprint(chr((Gdk.keyval_to_unicode(event.keyval)))) and \
not event.keyval == Gdk.KEY_space and \
elif (event.state & modifiers) == 0 and \
event.keyval in range(33, 126) and \
not self.toolbar.searchbar.get_reveal_child():
self.toolbar.searchbar.show_bar(True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment