arrow keys

pull/14/head
sezanzeb 4 years ago
parent 03ccb935fe
commit 12dee3370a

@ -39,7 +39,7 @@ CLOSE = 1
PRIORITIES = {
EV_KEY: 100,
EV_ABS: 50
EV_ABS: 50,
}

@ -24,7 +24,7 @@
import evdev
from gi.repository import Gtk, GLib
from gi.repository import Gtk, GLib, Gdk
from keymapper.state import custom_mapping, system_mapping
from keymapper.logger import logger
@ -239,6 +239,12 @@ class Row(Gtk.ListBoxRow):
'focus-out-event',
self.keycode_input_unfocus
)
# don't leave the input when using arrow keys or tab. wait for the
# window to consume the keycode from the reader
keycode_input.connect(
'key-press-event',
lambda *args: Gdk.EVENT_STOP
)
character_input = Gtk.Entry()
self.character_input = character_input

Loading…
Cancel
Save