Bug 4657 - Shortcuts 'n', 'p' and 'Shift+n' for next or previous message are not working
Summary: Shortcuts 'n', 'p' and 'Shift+n' for next or previous message are not working
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (Windows)
Classification: Unclassified
Component: default (show other bugs)
Version: 4.1.1
Hardware: PC Windows 7
: P3 normal
Assignee: Jonathan Boeing
URL:
Depends on:
Blocks:
 
Reported: 2023-01-05 09:49 UTC by Ivailo Andonov
Modified: 2023-06-01 11:34 UTC (History)
0 users

See Also:


Attachments

Description Ivailo Andonov 2023-01-05 09:49:37 UTC
Shortcuts 'n', 'p' and 'Shift+n' for going to next / previous or next unread message are not working. Arrows are working. The focus is in the message tree if that matters.
I tried to change preset keyboard shortcuts in Preferences -> Other -> Miscellaneous to Mew / Wanderlust and Mutt but didn't help.
Every time I open this setting it shows Default.
I don't know what Mew / Wanderlust and Mutt mean either.

Best Regards
Ivo
Comment 1 Ivailo Andonov 2023-05-18 07:26:42 UTC
Trying to investigate this issue again.
I found that in menurc there is a line:
; (gtk_accel_path "<Actions>/Menu/View/Goto/Next" "n")
if I close Claws, uncomment this and open it shortcut still doesn't work and when the Claws is closed the line gets overwritten again as commented.
Does anybody know where the initial setting value comes from?
Comment 2 Ivailo Andonov 2023-05-18 11:33:06 UTC
Update:
At each startup Claws writes in claws-win32.log:
(claws-mail.exe:15260): Gdk-WARNING **: 12:56:03.543: Could not open registry key 'SYSTEM\CurrentControlSet\Control\Keyboard Layouts\D0030402'. Error code: 2
(claws-mail.exe:15260): Gdk-DEBUG: 12:56:03.543: Could not query registry key 'Keyboard Layout\Substitutes\D0030402'. Error code: 2

All the keys names in SYSTEM\CurrentControlSet\Control\Keyboard Layouts\ are only decimal numbers.
I have searched the string 'D0030402' in all keys and values in registry and all files content in C:\Program Files\Claws Mail and C:\Users\Ivo\AppData\Roaming\Claws-mail and didn't find it.

Why the Claws tries to read that key?
Comment 3 Jonathan Boeing 2023-06-01 07:35:31 UTC
0402 is the Windows Locale ID for Bulgarian.

Looking at https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/win32/gdkkeys-win32.c the D0030402 is the return value from GetKeyboardLayoutName (https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamea)

D0030402 isn't listed at https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values?view=windows-11, but that page does show 00030402 as plain Bulgarian.

What are your Keyboard and IME settings in Windows?  Do you have any non-standard hardware or settings that might cause the unexpected return value from GetKeyboardLayoutName?
Comment 4 Ivailo Andonov 2023-06-01 08:24:01 UTC
Dear Jonathan, thank you for your help!
It seems to be some Windows issue. I uninstalled the keyboards and installed them again, restarted Claws and now shortcuts are working!!!

There is only one thing not working but surely not related to this: When I focus an item from the menu and press a key - this is not assigned as shortcut as it is written in the manual. In the older version of Claws there was a shortcut 'L' for open an attachment which is now not assigned. I wanted to assign this shortcut again.

Note You need to log in before you can comment on or make changes to this bug.