After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 373566 - Implement the new desktop/laptop keyboard mapping spec.
Implement the new desktop/laptop keyboard mapping spec.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.17.x
Other All
: Normal enhancement
: 2.18.0
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-10 21:25 UTC by Rich Burridge
Modified: 2008-07-22 19:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
First attempt at a patch to fix this problem. (29.38 KB, patch)
2006-11-13 21:09 UTC, Rich Burridge
none Details | Review
Hopefully a working version of the patch. (29.46 KB, patch)
2006-11-13 22:32 UTC, Rich Burridge
none Details | Review
Patch to fix up "say all" in laptop mode (thanks Mike). (566 bytes, patch)
2006-11-14 17:47 UTC, Rich Burridge
none Details | Review

Description Rich Burridge 2006-11-10 21:25:32 UTC
Section 4.1 of the User Requirements and Functional Description
specification has been updated to include details of two sets
of keyboard mappings: one for desktop system and the other for
laptops.

This needs to be implemented in the Orca code.
Comment 1 Rich Burridge 2006-11-13 21:09:36 UTC
Created attachment 76522 [details] [review]
First attempt at a patch to fix this problem.

I'm not ready to check this in yet.
There is one (major) problem remaining.
loadUserSettings() in orca.py should have been adjusted
to force the new key bindings to be loaded.
This isn't working (yet).
Comment 2 Rich Burridge 2006-11-13 22:32:03 UTC
Created attachment 76531 [details] [review]
Hopefully a working version of the patch.

The magic missing ingredient was the need to set
self._oldAppSettings = None
in the activate() and deactivate() methods in
focus_tracking_presenter.py.
Comment 3 Rich Burridge 2006-11-13 22:34:55 UTC
Changes checked into CVS HEAD. No doubt there will be some tweaking
to get it just the way that people want it, but it's pretty close
now. Mike/Will (and Joanie); could you give it a try please?

Thanks.
Comment 4 Willie Walker 2006-11-13 23:32:05 UTC
Hi Rich:  Looks like it's working, which is a plus.  :-)  I think you need to make the following change, though, to make sure you use keysym strings.  Without this, the "," and "." keys won't work with the laptop bindings:

Index: src/orca/default.py
===================================================================
RCS file: /cvs/gnome/orca/src/orca/default.py,v
retrieving revision 1.239
diff -p -u -r1.239 default.py
--- src/orca/default.py 13 Nov 2006 22:33:00 -0000      1.239
+++ src/orca/default.py 13 Nov 2006 23:28:13 -0000
@@ -779,14 +779,14 @@ class Script(script.Script):
 
         keyBindings.add(
             keybindings.KeyBinding(
-                ",",
+                "comma",
                 1 << settings.MODIFIER_ORCA,
                 1 << settings.MODIFIER_ORCA,
                 self.inputEventHandlers["reviewCurrentCharacterHandler"]))
 
         keyBindings.add(
             keybindings.KeyBinding(
-                ".",
+                "period",
                 1 << settings.MODIFIER_ORCA,
                 1 << settings.MODIFIER_ORCA,
                 self.inputEventHandlers["reviewNextCharacterHandler"]))
Comment 5 Rich Burridge 2006-11-14 01:34:51 UTC
Thanks Will. I've just checked your change into CVS HEAD.
Comment 6 Joanmarie Diggs (IRC: joanie) 2006-11-14 07:28:28 UTC
Perhaps it is the result of the lateness of the hour, but none of the *new* keybindings seem to be working on my laptop.  I checked that the new keybindings were present in my default.py.  They are....

As an example, CapsLock q quits (as it has ever since I modified my Orca modifier), but CapsLock i gives me an "i".

Comment 7 Joanmarie Diggs (IRC: joanie) 2006-11-14 07:56:01 UTC
Never mind.  It was indeed the hour. Needed to make the change in the Orca Preferences dialog.  D'oh! Thanks Mike!! :-)  And sorry guys....
Comment 8 Rich Burridge 2006-11-14 08:25:24 UTC
Yeah, there is no automatic detection here. I'm not even sure
there should be. There are going to be people who want the laptop
settings on their desktop computers (to free up the numeric
keypad) and there are going to be people (like me) who use a USB
"external" keyboard on their laptop, who will prefer the desktop settings.
Comment 9 Rich Burridge 2006-11-14 17:47:09 UTC
Created attachment 76577 [details] [review]
Patch to fix up "say all" in laptop mode (thanks Mike).
Comment 10 Rich Burridge 2006-11-14 17:48:28 UTC
New patch checked into CVS HEAD.
Comment 11 Rich Burridge 2006-11-14 20:36:05 UTC
After discussing this with Will and Mike, closing as FIXED.