Commit ebb4a568 authored by Joanmarie Diggs's avatar Joanmarie Diggs
Browse files

Fix for bug #660099 - Cannot re-bind Orca keybindings via the Preferences dialog

parent 05cd475b
......@@ -5,7 +5,7 @@ m4_define([orca_version],
[orca_major_version.orca_minor_version.orca_micro_version])
m4_define(gtk_required_version, 3.1.91)
m4_define(pygobject_required_version, 2.90.3)
m4_define(pygobject_required_version, 3.0.2)
m4_define(atspi_required_version, 2.1.92)
AC_INIT([orca],
......
......@@ -1151,9 +1151,8 @@ def _processKeyCaptured(event):
#
keymap = Gdk.Keymap.get_default()
entries_for_keycode = keymap.get_entries_for_keycode(event.hw_code)
success = entries_for_keycode[0]
entries = entries_for_keycode[1]
event.event_string = Gdk.keyval_name(entries[0].keycode)
entries = entries_for_keycode[-1]
event.event_string = Gdk.keyval_name(entries[0])
if not event.event_string:
orca_state.capturingKeys = False
......
......@@ -2969,7 +2969,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
mods = self.newBinding.modifiers
clickCount = self.newBinding.click_count
except:
string = None
string = ''
mods = 0
clickCount = 1
......
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