Bug 144428 - The keyboard shortcut <RCtrl> + <Menu> opens the context menu.
Summary: The keyboard shortcut <RCtrl> + <Menu> opens the context menu.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2021-09-10 08:43 UTC by Danila Ikryannikov
Modified: 2022-09-09 08:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danila Ikryannikov 2021-09-10 08:43:03 UTC
Description:
Why it's wrong: The <RCtrl> + <Menu> combination can be used in Linux to switch to a second keyboard layout.
Expected Behavior: <Menu> opens a context menu, <RCtrl> + <Menu> (if configured) selects an alternate keyboard layout.
Actual behavior: <Menu> opens a context menu, <RCtrl> + <Menu> (if configured) selects an alternate keyboard layout AND the application opens a context menu. 

Steps to Reproduce:
press <RCtrl> + <Menu> while editing a document or table (to switch to the second keyboard layout)

Actual Results:
a context menu appeared 

Expected Results:
a context menu does not open 


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded
Comment 1 Heiko Tietze 2022-09-08 07:35:26 UTC
This depends much on the desktop environment and configuration. KDE's default shortcut to switch to the next keyboard layout is ctrl+alt+K. Meaning we cannot guarantee that shortcuts work in all environments. 

Looking into the code it seems we handle KEY_MENU / KEY_CONTEXTMENU but not in combination with other keys. Don't see how we can solve the problem.
Comment 2 Luboš Luňák 2022-09-08 14:17:23 UTC
I think it would be reasonable to open the context menu in reaction on <Menu> only if modifiers are not pressed (in Firefox <Menu> triggers the context menu only alone or with Shift but not with Ctrl nor Alt, although e.g. KDE's KWrite triggers it always).