Summary: | cannot assign key-bindings to menu items | ||
---|---|---|---|
Product: | Claws Mail | Reporter: | Marco van Hulten <marco> |
Component: | UI | Assignee: | users |
Status: | NEW --- | ||
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 4.0.0 | ||
Hardware: | PC | ||
OS: | OpenBSD |
Description
Marco van Hulten
2021-11-17 11:13:57 UTC
Unfortunately, keybindings have changed in gtk3. The gtk2 way no longer works, and instead keybindings in gtk3 have to be done via css. Or perhaps a custom way of handling them might be possible. The problem here is that the old gtk2 prefs have not been removed in the gtk3 version of claws-mail. Right now the only way to change keyboard shortcuts in in gtk3 claws-mail is to edit ~/.claws-mail/menurc in a text editor when claws-mail is not running. This is area needs to be ported to gtk3, and so I am changing this to an "enhancement". BTW Marco, in case you don't want to do it by hand you can easily edit menurc through Clawsker [1] hotkeys editor tab [2]. [1] https://www.claws-mail.org/clawsker.php [2] https://git.claws-mail.org/?p=clawsker.git;a=blob_plain;f=ui/kde-hotkeys.png Paul wrote: > Right now the only way to change keyboard shortcuts in in gtk3 > claws-mail is to edit ~/.claws-mail/menurc in a text editor when > claws-mail is not running. If I do this (checked with 'ps' that claws-mail really isn't running), Claws Mail overwrites my change, e.g. ; (gtk_accel_path "<MainwinActions>/Menu/Tools/Actions/Archief" "a") is changed back to ; (gtk_accel_path "<MainwinActions>/Menu/Tools/Actions/Archief" "") It doesn't seem right what I'm doing here. 'menurc' is > an automated accelerator map dump according to its header. This, and the fact that all lines in 'menurc' start with a semicolon alluding to comment, suggests that I should not edit this file. > This is area needs to be ported to gtk3, and so I am changing this to > an "enhancement". Very good! > If I do this (checked with 'ps' that claws-mail really isn't running), > Claws Mail overwrites my change, e.g. > > ; (gtk_accel_path "<MainwinActions>/Menu/Tools/Actions/Archief" "a") > > is changed back to > > ; (gtk_accel_path "<MainwinActions>/Menu/Tools/Actions/Archief" "") It's changed back because you didn't remove the leading '; ', which is a comment. You need to remove the leading '; ' on those items you want to edit. > It doesn't seem right what I'm doing here. 'menurc' is > an automated accelerator map dump according to its header. This, > and the fact that all lines in 'menurc' start with a semicolon alluding > to comment, suggests that I should not edit this file. I am suggesting, no, not suggesting, but directly saying that you should edit that file. But you will decide what you feel is right or wrong and act accordingly. Thanks, this works. |