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 510231 - _presentTextAtNewCaretPosition() assumes standard navigation keys
_presentTextAtNewCaretPosition() assumes standard navigation keys
Status: RESOLVED WONTFIX
Product: orca
Classification: Applications
Component: speech
2.21.x
Other All
: Normal enhancement
: FUTURE
Assigned To: Orca Maintainers
Orca Maintainers
: 515924 (view as bug list)
Depends on:
Blocks: 520591
 
 
Reported: 2008-01-17 17:36 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-09-05 16:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Joanmarie Diggs (IRC: joanie) 2008-01-17 17:36:02 UTC
Steps to reproduce:

1. In OOo Writer, customize your navigation keystrokes to something
   non-standard (I made F4 move to the next paragraph and Shift+F3 
   move to the next line). 

2. Create/open a document and navigate it using your new commands.

Expected results: We'd braille and speak the new location.

Actual results: We just braille it.

I took a look at default.py's _presentTextAtNewCaretPosition() and found this comment:

    # Guess why the caret moved and say something appropriate.
    # [[[TODO: WDW - this motion assumes traditional GUI
    # navigation gestures.  In an editor such as vi, line up and
    # down is done via other actions such as "i" or "j".  We may
    # need to think about this a little harder.]]]
    #

I'm filing this bug because I think we should think about this a little harder. :-)
Comment 1 Willie Walker 2008-02-14 15:24:21 UTC
*** Bug 515924 has been marked as a duplicate of this bug. ***
Comment 2 Willie Walker 2008-02-14 15:25:13 UTC
From Bug 515924, so we don't lose it:

> Would it be possible to solve the field case, and the paragraph case, and the
> vi case, and other cases for other apps we haven't even thought about by always
> storing our last cursor position and basing our "guess" on our new position
> relative to the old one? 

I think in many cases we can indeed infer what to speak based upon
prior/current caret position alone.  I think one of the cases we need to
consider, however, is whether we speak the character, word, line, etc., if the
caret moves from one line to the next.
Comment 3 Willie Walker 2008-03-11 14:06:44 UTC
First coarse pass at GNOME 2.24 planning.
Comment 4 Willie Walker 2008-09-05 16:08:45 UTC
Closing this one out.  We *may* get to it as a refactoring exercise, but in reality, this is something we will most likely never do unless a user logs a specific bug for a specific application.  I guess we could always make one up (e.g., use 'vi' in gnome-terminal), but I think we should wait for real user impact before doing this.