Bug 155809 - Insert comment keyboard shortcut (Ctrl+Alt+C) has no effect with BenQ Display Pilot
Summary: Insert comment keyboard shortcut (Ctrl+Alt+C) has no effect with BenQ Display...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2023-06-13 03:24 UTC by Philippe Cloutier
Modified: 2023-06-21 15:44 UTC (History)
3 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 Philippe Cloutier 2023-06-13 03:24:24 UTC
As previously reported in ticket #71237 and #118269, the Ctrl+Alt+C supposed to add a comment is not working. In my case, it does not have any effect, whether in Writer, Impress or Calc. Adding a comment using other means (like the mouse button) works without any issue.

This occurs on Windows 11 Family 22H2 (22621), with a Microsoft Natural Ergonomics 4000 keyboard and the CMS (Canadian Multilingual) keyboard layout. It persists after rebooting and upgrading (from 7.0). The information below is incorrect about the Windows version.

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: fr-CA (fr_CA); UI: fr-FR
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-06-14 19:55:10 UTC
Sounds a lot like bug 38891.
Can you please see if:
- other Ctrl + Alt shortcuts don't work?
- when you use those shortcuts with the cursor on the page (in Writer), do you get some character input, or absolutely nothing happens?

See also the meta bug 107244.

Thank you!
Comment 2 Philippe Cloutier 2023-06-15 04:05:56 UTC
Thanks to you Stéphane
I am using the CSA layout, which does not assign any character to Alt Car + C : https://fr.wikipedia.org/wiki/CAN/CSA_Z243.200-92#/media/Fichier:KB_Canadian_Multilingual_Standard_comment-fr.svg

The only other shortcut using Ctrl+Alt which I can see is the one for the extension manager, Ctrl+Alt+E, which also does not work. However, that is because CAN/CSA has the Euro symbol € on level 3 for E.

That being said, I figured out that Ctrl+Alt+C did have an effect, ie removing focus from the window. That is because a utility was globally catching that combination. It is BenQ's Display Pilot which uses that shortcut to switch color mode: https://defkey.com/benq-display-pilot-shortcuts

For reference, here are other programs which catch Ctrl+Alt+C: https://defkey.com/what-means/ctrl-alt-c

I am not sure what can be done with this issue. Hopefully there is a way for LibreOffice to poll which combinations are globally caught and react appropriately.
Comment 3 Stéphane Guillou (stragu) 2023-06-15 15:18:38 UTC
(In reply to Filipus Klutiero from comment #2)
> The only other shortcut using Ctrl+Alt which I can see is the one for the
> extension manager, Ctrl+Alt+E, which also does not work. However, that is
> because CAN/CSA has the Euro symbol € on level 3 for E.

Right, which would be the issue many users hit, tracked in bug 119676

> That being said, I figured out that Ctrl+Alt+C did have an effect, ie
> removing focus from the window. That is because a utility was globally
> catching that combination. It is BenQ's Display Pilot which uses that
> shortcut to switch color mode:
> https://defkey.com/benq-display-pilot-shortcuts

Not sure much can be done here, as we can't cater for all the other software catching shortcuts before LO does.
Will ask in the dev channel.
Comment 4 Philippe Cloutier 2023-06-15 16:43:49 UTC
(In reply to Stéphane Guillou (stragu) from comment #3)
> (In reply to Filipus Klutiero from comment #2)
> > The only other shortcut using Ctrl+Alt which I can see is the one for the
> > extension manager, Ctrl+Alt+E, which also does not work. However, that is
> > because CAN/CSA has the Euro symbol € on level 3 for E.
> 
> Right, which would be the issue many users hit, tracked in bug 119676

Ah, indeed. Thanks again Stéphane


> > That being said, I figured out that Ctrl+Alt+C did have an effect, ie
> > removing focus from the window. That is because a utility was globally
> > catching that combination. It is BenQ's Display Pilot which uses that
> > shortcut to switch color mode:
> > https://defkey.com/benq-display-pilot-shortcuts
> 
> Not sure much can be done here, as we can't cater for all the other software
> catching shortcuts before LO does.
> Will ask in the dev channel.

Thanks. It's more about managing conflicts than "catering" for other software. Visually, shortcut hints could be displayed in gray when a conflict is detected. However, to detect them, the OS needs to allow polling for handlers.
Comment 5 Stéphane Guillou (stragu) 2023-06-20 09:37:14 UTC
(In reply to Filipus Klutiero from comment #4)
> It's more about managing conflicts than "catering" for other
> software. Visually, shortcut hints could be displayed in gray when a
> conflict is detected. However, to detect them, the OS needs to allow polling
> for handlers.

I'll go with tagging this bug with "needsDevAdvice", as I'm out of my depth here.

I know Caolán has fixed a few shortcut issues in the past. Any opinion about the above, Caolán?
Comment 6 Telesto 2023-06-20 10:03:41 UTC
The problem sounds familiar to me. Pressing CTRL+ALT+C inserts the copyright symbol (©) in Writer & Calc if I set the language to Dutch with a QWERTY/USA keyboard configuration. 

If I set the language to English + keyboard configuration USA it works as expected.

I'm also using a Microsoft Natural Ergonomics 4000 keyboard. Just a coincidence??
Comment 7 Philippe Cloutier 2023-06-21 15:44:50 UTC
(In reply to Telesto from comment #6)
> [...]
> 
> I'm also using a Microsoft Natural Ergonomics 4000 keyboard. Just a
> coincidence??

Yes, that's just a coincidence. The Dutch layout will generate that symbol no matter what physical keyboard is used.

Thank you for that point

Should these 2 issues (conflict with Display Pilot and the Dutch keyboard layout) be treated separately or as a single one?