Bug 102177

Summary: Document focus lost when context menu opened
Product: LibreOffice Reporter: am_dxer <am_dxer>
Component: WriterAssignee: Caolán McNamara <caolan.mcnamara>
Status: VERIFIED FIXED    
Severity: normal CC: cno, foss, jbfaure, philipz85, raal
Priority: medium Keywords: accessibility, bibisectRequest, regression
Version: 5.2.1.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=101171
https://bugs.documentfoundation.org/show_bug.cgi?id=103914
Whiteboard: target:5.3.0 target:5.2.3
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 86349, 101912    

Description am_dxer 2016-09-13 17:07:11 UTC
Steps to reproduce:
1. Press the Applications key from within a writer document to open the context menu.
2. Press escape or select an item from the menu that returns focus to the document.
3. It is not possible to use the keyboard to navigate around the document.

The user must press F6 to move focus back to a control.
Comment 1 Yousuf Philips (jay) (retired) 2016-09-14 02:22:24 UTC
Didnt fully get what you meant, do you mean the alt key when you said "applications key". If so pressing escape returns to close the menu does return me to the document.
Comment 2 am_dxer 2016-09-14 11:41:02 UTC
Sorry for being unclear. I am referring to the key that looks like a cursor hovering over a menu. It is to the left of the right Control key and usually performs a similar action to a right click.
Comment 3 Yousuf Philips (jay) (retired) 2016-09-14 20:15:45 UTC
Confirmed that the context menu doesnt maintain focus within the document when opened, so focus isnt in document when pressing escape.

Regression as this doesnt happen in 5.1.5.

Version: 5.3.0.0.alpha0+
Build ID: 78404fe5549fded2eaf0c5ea6e1ca66039e995af
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-09-11_09:14:01
Locale: en-US (en_US.UTF-8); Calc: group
Comment 4 raal 2016-09-27 11:20:05 UTC
Version: 5.3.0.0.alpha0+, windows. No repro, I can for example open menu with Alt+F : Press the Applications key ; Press escape ; Alt+F opens menu File

After "Press the Applications key ; Press escape" I doesn't see blinking cursor, maybe this is the problem of this bug?

@am_dxer: what's your OS?

Thanks
Comment 5 Caolán McNamara 2016-09-27 12:40:45 UTC
its got to be non-gtk3 (maybe also non-mac) to see this
Comment 6 Commit Notification 2016-09-27 15:29:24 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=4da7971812b0a53ba80f7d9c29851c527488067d

Resolves: tdf#102177 focus not restored from context menus

It will be available in 5.3.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 V Stuart Foote 2016-09-27 20:27:34 UTC
*** Bug 101171 has been marked as a duplicate of this bug. ***
Comment 8 Commit Notification 2016-10-06 14:30:15 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-5-2":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=06761518b63cc420ee11cff3e54e1059a5985b01&h=libreoffice-5-2

Resolves: tdf#102177 focus not restored from context menus

It will be available in 5.2.3.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Cor Nouws 2016-10-21 12:33:40 UTC
perfect (daily20161020) - thanks!