disable alt-menu-shortcuts systemwide?
-
The qt-based text editor I am using has menu-accelerators/mnemonics that are eating alt-shortcuts I'd like to use otherwise (i.e. featherpad and alt-s, alt-f).
Is there a possibility to globally disable alt-shortcuts for qt, e.g. with a
~/.config/qt5.confor aexport QT_DISABLE_MENU_ACCELERATORS=1?Or do I have to contact the qt-application maintainer and ask them to provide an option to disable them?
-
Hi and welcome to the forums.
I have not seen such an option.
Do you mean for featherpad, you would like to use the preassigned alt+XX for something else
in the same app ? -
You can use qt_set_sequence_auto_mnemonic. Set it to
falseand it will disable handling of all accelerators (menus, labels etc.). -
You can use qt_set_sequence_auto_mnemonic. Set it to
falseand it will disable handling of all accelerators (menus, labels etc.).@Chris-Kawa
hi.
But to use this - the app must be recompiled or ? -
@Chris-Kawa
hi.
But to use this - the app must be recompiled or ?@mrjj said in disable alt-menu-shortcuts systemwide?:
But to use this - the app must be recompiled or ?
Ah, yes, sorry, I misunderstood the question. For existing application I don't know of a way.
-
Hi and welcome to the forums.
I have not seen such an option.
Do you mean for featherpad, you would like to use the preassigned alt+XX for something else
in the same app ?@mrjj and @Chris-Kawa , thank you for your fast replies.
@mrjj yes exactly. The "preassignment" comes from the menu mnemonics. The application allows to configure custom alt+XX shortcuts, but they don't overwrite the menu mnemonics. I will contact the application developer with an issue in github. If I'll stumble across this situation in another Qt-application, I'll ping back.