Bug 166740 - Many Ctrl+Shift+(symbol) shortcut isn't working
Summary: Many Ctrl+Shift+(symbol) shortcut isn't working
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Oscar65
URL:
Whiteboard: target:26.2.0 target:25.8.0.0.beta2 t...
Keywords:
Depends on:
Blocks: Shortcuts-Locale
  Show dependency treegraph
 
Reported: 2025-05-27 01:35 UTC by drhydroxide
Modified: 2025-06-14 05:52 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 drhydroxide 2025-05-27 01:35:43 UTC
Description:
I tried to assign some Ctrl+Shift+(symbol) shortcut but for some reason it doesn't register. I look further through Menu > Customize > Keyboard and I found out that only Ctrl+Shift+(letter) works.

Some Ctrl+Shift+(symbol) registered erroneously, such as:
Ctrl+Shift+` - registers as Ctrl+Shift+~
Ctrl+Shift+3 - registers as Ctrl+Shift+#
Ctrl+Shift+; - registers as Ctrl+Shift+:

Ctrl+Shift+(function), i.e. Esc, Tab, F1-F12, Ins, Del, Return, works normally.

Steps to Reproduce:
1. Open Menu > Customize > Keyboard
2. Press Ctrl+Shift+(symbol)

Actual Results:
The shortcut doesn't register or registers erroneously.

Expected Results:
The shortcut should register correctly.


Reproducible: Always


User Profile Reset: No

Additional Info:
OS: CachyOS
DE: KDE Plasma 6.3.5
Keyboard Layout: Generic Japanese 106 keys (switching to Generic 105 keys doesn't solve the bug)
Comment 1 m_a_riosv 2025-05-27 12:27:47 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode

BTW there are issues with shortcuts to shift keys in the keyboard.
E.g. in Spanish keyboard layout ';' is a shift key, not possible to use it with Ctrl+Shift+;.
Comment 2 drhydroxide 2025-05-30 07:51:19 UTC
@m_a_riosv : The problem persists in Safe Mode
Comment 3 Oscar65 2025-05-30 14:01:33 UTC
Have you check on menu Tools / Customize / Keyboard if keystroke works?

In my Spanish keyboard Shift+Control+7 doesn't work if you press this keystroke on configure keyboard window and Shortcut Keys combo selected. And Shift+Control+0 goes to Shift+Control+= because = is on top 0 key.

I configured Shift+Control+7 and doesn't work. There are some keystrokes that doesn't work. I will try to fix it.
Comment 4 drhydroxide 2025-05-30 16:05:43 UTC
@Oscar : As I initially described, that's exactly where I tested it. Basically every Ctrl+Shift+(non-letter char) is borked.
Comment 5 Oscar65 2025-05-30 20:57:17 UTC
@drhydroxide After research I found that Shift+Control+6 returns nCode1=262, Shift+Control+7 returns nCode1=1290 and Shift+Control+8 returns nCode1=264. Is weird.

I need to research more to know why Shift+Control+7 doesn't returns nCode1=263.
Comment 6 Oscar65 2025-05-30 21:16:56 UTC
I have assigned the bug to myself.
Comment 7 Oscar65 2025-05-31 07:29:54 UTC
Researching I discovered that adding SHIFT+CTRL+/ to KEYCODE_ARRAY it works.

There is a tool on linux: xev to check Xorg events. Running xev if I press SHIFT+CTRL+7 sometimes return XLookupString gives 1 bytes: (1f) "" and others XLookupString gives 1 bytes: (2f) "/". Other numbers returns the character with shift.

I switched Xorg keyboard to us with:

$ setxkbmap us

Then on Tools / Customize / Keyboard SHIFT+CTRL+7 works but SHIFT+CTRL+3 goes to SHIFT+CTRL+# that is character whit SHIFT on number 3 on us keyboard. SHIFT+CTRL+/ also works.

So from my point of view the solution is to add all keys to KEYCODE_ARRAY in the source code because the X server returns with CTRL+SHIFT one or another character depending on xkbdmap.
Comment 8 Oscar65 2025-05-31 07:53:49 UTC
I mean add all symbols with SHIFT+CTRL.
Comment 9 Oscar65 2025-05-31 10:06:40 UTC
@drhydroxide Could you add here the output from following command to test your keyboard layout?

$ setxkbmap -query
Comment 10 m_a_riosv 2025-05-31 22:14:58 UTC
The issue is also happening with Win.
Comment 11 drhydroxide 2025-06-01 04:57:27 UTC
@Oscar65:
WARNING: Running setxkbmap against an Xwayland server
rules:      evdev
model:      pc105
layout:     us
Comment 12 Oscar65 2025-06-05 14:51:59 UTC
@drhydroxide tested my update on us keyboard. Now works Shift+Ctrl+8, Shift+Ctrl+=. Shift+Ctrl+< and Shift+Ctrl+-. And Shift+Ctrl+/, Shift+Ctrl+*, Shift+Ctrl+-, Shift+Ctrl++ on keypad.
Comment 13 Commit Notification 2025-06-11 10:18:43 UTC
Oscar Megía López committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ea377c8ee35ce5511baadcfc75f1994c9abc33d9

tdf#166740 On Customize/Keyboard shortcuts added

It will be available in 26.2.0.

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

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2025-06-11 14:47:21 UTC
Oscar Megía López committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/a493a9c5b8b3dea76dbb1ad73dd6a2d1a7a9df3c

tdf#166740 On Customize/Keyboard shortcuts added

It will be available in 25.8.0.0.beta2.

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

Affected users are encouraged to test the fix and report feedback.
Comment 15 Commit Notification 2025-06-12 00:59:45 UTC
Oscar Megía López committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/848a995cad3426fbd83f06b3efc818a5bec6c860

tdf#166740 On Customize/Keyboard shortcuts added

It will be available in 25.2.5.

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

Affected users are encouraged to test the fix and report feedback.