Bug 100622 - Menu shortcuts don't work with right ALT key
Summary: Menu shortcuts don't work with right ALT key
Status: RESOLVED DUPLICATE of bug 97908
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Shortcuts-AltGR
  Show dependency treegraph
Reported: 2016-06-26 17:39 UTC by johnt
Modified: 2017-11-19 18:34 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

This problem also occurs in Calc for the Right Alt Key (9.43 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-04-21 14:13 UTC, Doug

Note You need to log in before you can comment on or make changes to this bug.
Description johnt 2016-06-26 17:39:08 UTC
I just upgraded Office Libre to, the most current version and after that my right ALT key no longer works - meaning it won't activate the menu shortcuts.

The left ALT key works in Office Libre and the right ALT key works in other apps like FireFox.
Comment 1 Aron Budea 2016-06-26 18:47:19 UTC
Confirmed with US keyboard layout (where both Alts behave the same way).
Right Alt+F opens File menu in, but prints an "f" character in
Still there in daily master build (0325b22a2a2b537a71f53b7c5d3e6c13fef68911).

There was a keyboard shortcut-related commit between 5.0.3 and 5.0.4 (bug 95761), which might be related. Juergen?
Comment 2 V Stuart Foote 2016-06-26 19:23:43 UTC
On Windows 10 Pro 64-bit en-US with
Version: (x64)
Build ID: 490fc03b25318460cfc54456516ea2519c11d1aa
Locale: en-US (en_US)

Yes, see the same behavior continuing through and in the 5.3.0alpha0+ builds of master.

Accelerators are bound to the Left <alt> key as expected. But the Right <alt> key is not being processed the same.  Right <alt> will toggle to the Main menu and back to document canvas (as F10 does)--but it does not get linked to form expected accelerators.

And in addition accelerators not picking up the key for menu/toolbar navigation--the new <Alt>+x Unicode toggle also does not work with the Right <alt> key.
Comment 3 Juergen Funk (CIB) 2016-07-12 09:35:44 UTC
Hi Aron, V Stuart,

the main problem of my patch is, it must be in dependency of the language.
In some language (german) the right ALT = ALTGR for a third key-stuff, but in other language (english) exist not a different between this ALT-keys.

The RIGHT-ALT+CTRL it is the same when press the ALTGR-Key, and without my Patch the HOT-Key combination of ALT-CTRL was not possible for the third key-stuff-keys. 

But at the moment we have no info if the Language with ALTGR or not.

Comment 4 Aron Budea 2016-07-13 02:22:03 UTC
Hi Juergen,

This seems to be a complex topic. I read the hint the other day that Ctrl+Alt shortcut modifier should preferably be avoided in Windows [1], and while I don't know how much of a problem reducing the amount of available shortcuts would be, it would save us from a lot of headache in the Alt-AltGr area. Would it be worth considering?
It kind of feels that no matter what kind of workaround is implemented, something will always be off...

Though in this case possibly checking whether VK_CONTROL was actually indicated to be pressed in the VK_RMENU IF clause, and ORing KEY_MOD2 if it wasn't, might solve this particular issue, because the right Alt key is never passed through. I kind of wonder how AltGr-modified keys still happen to work, but I don't know the code.

[1] https://blogs.msdn.microsoft.com/oldnewthing/20040329-00/?p=40003
Comment 5 Doug 2017-04-21 14:13:59 UTC
Created attachment 132739 [details]
This problem also occurs in Calc for the Right Alt Key

This bug is present on two Windows 10 x64 laptops, one a Dell with consolidated keyboardand the other a Toshiba with a ful keyboard.  The attached spreadsheet, cell A1, is an example of what you get when you try to use the right Alt Key on either laptop.
Comment 6 Aron Budea 2017-04-24 00:42:36 UTC
Suspected commit confirmed using bibisect repo bibisect-win32-5.1.

author		Juergen Funk <juergen.funk_ml@cib.de>	2015-11-12 09:50:59 (GMT)
committer	Caolán McNamara <caolanm@redhat.com>	2015-11-12 14:14:32 (GMT)

"tdf#95761 All Hotkeys with CTRL+ALT+ not worked"
Comment 7 Xisco Faulí 2017-09-13 18:14:30 UTC
it seems like a dupe of bug 97908

*** This bug has been marked as a duplicate of bug 97908 ***
Comment 8 johnt 2017-11-19 18:34:25 UTC
I switched from Office Libre back to Open Office and it had the same problem (shared code base probably).  

However, in the most recent Windows 10 update (1703 (OS Build 15063.726)), the right ALT+E key combo starting working like before (i.e. correctly - opens the Edit menu).

I see Microsoft has hidden their OS version - no longer under My Computer>Properties.  In cmd window, need to type winver.