Add checks for duplicate keybindings
Orca tries to prevent the user from mapping two commands to the same keystroke. As an example, in Orca's preferences for Firefox and Chromium, if you try to bind something to "Up" Orca speaks "The key entered is already bound to Go to previous line" and doesn't accept the binding.
While looking into issue #335 (closed), I discovered that "Up" (unmodified) was in @alex19EP's Firefox preferences bound to toggle_enabled
(an old command related to who controls the caret). But nothing had unbound "Up" from previous_line
.
Either some other bug made it possible for him to not encounter Orca's checks when binding, or the file was hand-edited. We need to:
- Figure out if it is possible via Orca's preferences dialog to bind two commands to the same keystroke and, if so, fix that.
- Add checks to identify and resolve instances in which two commands have been bound to the same keystroke.
What the resolution is remains to be determined. But the present situation is problematic.
Edited by Joanmarie Diggs