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 400766 - Orca does not speak auto-complete information in the run dialog.
Orca does not speak auto-complete information in the run dialog.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.17.x
Other All
: Normal normal
: ---
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-25 20:42 UTC by Rich Burridge
Modified: 2007-01-29 19:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to speak the full contents of the edit field in auto-complete (1.09 KB, patch)
2007-01-28 22:54 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Rich Burridge 2007-01-25 20:42:34 UTC
Steps to reproduce:

1/ Press Alt-F2 to bring yup the run dialog.
2/ Start typing the nawme of something that has been run recently.
3/ When the filename gets completed, Orca should speak the entire
contents of the edit field.

Only standard keyboard echo is uttered.
Comment 1 Joanmarie Diggs (IRC: joanie) 2007-01-28 22:54:35 UTC
Created attachment 81400 [details] [review]
patch to speak the full contents of the edit field in auto-complete

Turns out this is true in the standard Open dialog boxes as well.

The attached seems to work.
Comment 2 Mike Pedersen 2007-01-29 01:49:33 UTC
Hey Joanie, after testing this a bit I quite like it.  thanks much!  If no one finds any side effects I'd like to see this committed.  As a side note to the team, this is also the way autocompletes should behave in firefox and thunderbird.  The fact that it repeats the completed information as more characters are typed is OK in fact it is the expected behavior so that a fast typist doesn't miss the fact that they don't need to continue entering characters.  
Comment 3 Joanmarie Diggs (IRC: joanie) 2007-01-29 02:35:23 UTC
I just noticed that this fix also takes care of autocomplete w.r.t. email addresses in Evolution (assuming, as Mike indicated, there are no side effects).
Comment 4 Willie Walker 2007-01-29 16:00:28 UTC
OK -- the main idea behind the patch is to modify the text-inserted handler to see if there are any text selections.  If so, then the inserted text was obviously the result of an autocomplete action.  

The only cases where I think this might fail involve mouse actions.  For example, in gnome-terminal, select some text using the mouse (you cannot select it with the keyboard, yet, though the vte folks seem interested in providing this).  Now type away quickly.  You'll see that the text remains selected.  

Two other examples are gedit and oowriter.  Type some text in a gedit/oowriter window.  Select some text using the keyboard or mouse.  Now, right click in the gedit/oowriter window on some text that is not selected.  The selected text remains selected and it is also copied to the position where you clicked.

Can you please test the patch to see if Orca's behavior remains consistent for these two cases?  Given that the wasAutoComplete logic only modifies behavior if the last input event was a keyboard event, I suspect the gedit/oowriter stuff should be consistent.  But...the gnome-terminal stuff might be different.

If it is consistent, I say it probably is OK to check in the patch (THANKS!).  In addition, if it is consistent, but broken, can you also file bugs for the broken behavior? 
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-01-29 16:33:02 UTC
Regarding gnome-terminal, I gave that a try and nothing unusual got echoed.  However, gnome-terminal.py has its own onTextInserted and only goes to the default if we're not in a terminal:

        [...]
        # We only do special things for terminals.
        #
        if event.source.role != rolenames.ROLE_TERMINAL:
            default.Script.onTextInserted(self, event)
            return
        [...]

So, for good measure, I modified gnome-terminal.py to always use default.py's onTextInserted.  While that doesn't result in good access to the terminal window's content, it doesn't result in the highlighted text being echoed either.  So I think we're ok on that front.

As for the other two examples.   The behavior remains consistent, but it may be because I'm mouse-challenged. :-/   If I type some text in gedit, select it either with the keyboard or the mouse, and then right-click on some text that is not selected, I get a context menu for the selected text (and can choose, for instance, to cut it, copy it, etc.)   Similarly, if I try it in OOo Writer, the text that was selected becomes unselected.  Is there some mouse gesture I should be using to accomplish the test you're describing?  (Sorry for being dense)
Comment 6 Willie Walker 2007-01-29 16:47:48 UTC
> So, for good measure, I modified gnome-terminal.py to always use default.py's
> onTextInserted.  While that doesn't result in good access to the terminal
> window's content, it doesn't result in the highlighted text being echoed
> either.  So I think we're ok on that front.

Yeah!  Thanks!

> As for the other two examples.   The behavior remains consistent, but it may be
> because I'm mouse-challenged. :-/   If I type some text in gedit, select it
> either with the keyboard or the mouse, and then right-click on some text that
> is not selected, I get a context menu for the selected text (and can choose,
> for instance, to cut it, copy it, etc.)   Similarly, if I try it in OOo Writer,
> the text that was selected becomes unselected.  Is there some mouse gesture I
> should be using to accomplish the test you're describing?  (Sorry for being
> dense)

My mouse is whacked.  Try middle-click.
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-01-29 17:46:26 UTC
Huh.  Didn't know middle-click did that.   While I'm not sure how much use I'll have for it personally, that is certainly good to know.  Thanks!!

Now that I know how my mouse works.... ;-)  The answer for both Gedit and OOo Writer is that the behavior is the same with and without the patch:  The selected text is not re-echoed as a result of the object:text-changed:insert event -- neither is the text that gets inserted as a result of the mouse action.   Not sure if we want to file a separate bug for that or not.
Comment 8 Willie Walker 2007-01-29 18:32:58 UTC
> Now that I know how my mouse works.... ;-)  The answer for both Gedit and OOo
> Writer is that the behavior is the same with and without the patch:  

Great!  Thanks for checking things out.  I say go ahead and commit it!  :-)

> selected text is not re-echoed as a result of the object:text-changed:insert
> event -- neither is the text that gets inserted as a result of the mouse
> action.   Not sure if we want to file a separate bug for that or not.

A separate bug probably would be good.  One of our target user groups is (or will be) magnification+speech users, of which we'll have mouse users.

The fix might be as simple as adding and else clause that says "so...the last event wasn't a keyboard event, eh?  Well...if it was a mouse button 2 event, then speak the inserted text."  Or something like that.

Comment 9 Joanmarie Diggs (IRC: joanie) 2007-01-29 19:03:19 UTC
Patch committed.  Thanks for the review!

Regarding the other issue, please see bug #402192.

Okay to close this one?
Comment 10 Willie Walker 2007-01-29 19:32:51 UTC
(In reply to comment #9)
> Patch committed.  Thanks for the review!
> 
> Regarding the other issue, please see bug #402192.
> 
> Okay to close this one?
> 

Please feel free to close and watch your points ranking rise.  :-)

Thanks also for logging the other bug!  You're good.