ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.84k stars 1.09k forks source link

Key combinations with the Alt key (such as Alt+Tab) inappropriately show the keyboard shortcuts overlay #2907

Open parcelcat opened 4 weeks ago

parcelcat commented 4 weeks ago

This issue is unique.

Operating System of DocumentServer

Linux (DEB package), Linux (RPM package)

Version information

8.1.1.27

Expected Behavior

When I switch from another application to OnlyOffice using Alt+Tab, OnlyOffice should appear on the screen without showing the keyboard shortcuts overlay.

Actual Behavior

OnlyOffice does sometimes show the keyboard shortcuts overlay when Alt+Tab is used to switch from another application to OnlyOffice.

Reproduction Steps

  1. Open a document in OnlyOffice.
  2. Open another application.
  3. Use Alt+Tab to switch from the other application to OnlyOffice.
  4. OnlyOffice should appear without showing the keyboard shortcuts overlay. However, OnlyOffice sometimes shows the overlay.

Additional information

When I switch from another application to OnlyOffice using Alt+Tab, OnlyOffice often displays the keyboard shortcuts overlay. This forces me to press the Alt key again to disable the overlay before I can start typing in the open document.

OnlyOffice should only show the keyboard shortcuts overlay when the user presses Alt by itself, not when the user presses Alt as a combination of multiple keys.

This issue is similar to #1660, except #1660 proposes a workaround to the problem (by allowing the user to disable the keyboard shortcuts overlay) instead of fixing the root problem (which is OnlyOffice inappropriately showing the keyboard shortcut overlay when a key combination is used). This comment in #1660 shows that the issue also affects macOS.

uc-ai2 commented 2 weeks ago

Hello, @parcelcat! I was unable to reproduce the issue on Windows 10 (exe), POP_OS 22.04 (deb), as well as on virtual machines with Fedora 40 (rpm) and Mint 21.3 (deb). It’s possible that specific conditions are needed to reproduce the issue. What is your PC configuration and operating system?

kayzzen01 commented 2 days ago

Hello @uc-ai2,

I use Arch + KDE and the problem occurs.

In OnlyOffice 8.1, I disabled the shortcut using the Alt key and it worked well for my workflow. Now in version 8.2 this option does not work, now the cursor is moved to the Home menu and I cannot type, needing to press the Alt key again. If I press the right arrow I will navigate in the OnlyOffice menu.

I think there is a similar bug here: https://github.com/ONLYOFFICE/DocumentServer/issues/1660

EverardNisse commented 2 days ago

Same behavior on Arch + KDE + Wayland