-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable menu helpers (Alt-f, Alt-h, etc.) #485
Comments
Hello! |
They're called "mnemonics" and I'm not sure how popular they are (I never use them in any app). They can be removed easily in the app code (ui files); I think it's a good idea to remove them from QTerminal's menubar, at least. @yan12125, what do you think? BTW, KDE has a "feature" that's sometimes called "auto-mnemonics", so that even if "&" is removed from the ui files, KDE will add it! However, that's not our problem. |
It was made on purpose at #139. So, maybe some people use it. |
One should be able to toggle them on and off as they might interfere with applications that we don't know or don't care of. @matrohin - we refinded the shortcuts several times but will be still busted if a certain application don't follow some commons. |
I agree but there's no clean Qt method for that, as far as I know. Once you add "&" to a text, the mnemonic will be activated for its button/menubar-item/menu-item.... It's possible to change texts on the fly but I haven't seen that in any app. |
if i read it right it can be set in QAppliction |
If you mean Anyhow, |
bah :( |
https://doc.qt.io/qt-5/qkeysequence.html#qt_set_sequence_auto_mnemonic - next try 😎 @tsujan - must upgrade my arch, had not much time for lately |
Will see it later.
No problem. I'm sure @yan12125 has Qt 5.13. Here it happens with any app that has a shortcut editor of any kind: QTerminal, Screengrab, FeatherPad.... :( A new bug in Qt 5.13? |
Very nice finding! I didn't know about it. But it can't be toggled on the fly; the app should be restarted. Moreover, Qt has an inconsistency about it: if it's set to Since there' s already a workaround, i.e. making the menubar invisible, I don't think we need to add an option for IMHO, this can be closed. |
I got global menu (kde) enabled and menu bar hidden. Therefore I couldn't
use the workaround. I do not consider it resolved.
…On Sat, Aug 3, 2019, 10:24 AM tsujan ***@***.***> wrote:
@agaida <https://github.com/agaida>
Very nice finding! I didn't know about it. qt_set_sequence_auto_mnemonic
works (I tested it with FeatherPad).
But it can't be toggled on the fly; the app should be restarted. Moreover,
Qt has an inconsistency about it: if it's set to false, the underlines
will still be shown on pressing Alt, although Alt+... won't be consumed.
I don't like that but it's tolerable.
Since there' s already a workaround, i.e. making the menubar invisible, I
don't think we need to add an option for qt_set_sequence_auto_mnemonic.
IMHO, this can be closed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#485?email_source=notifications&email_token=ACVDG73HYAIYAN35OFGFXT3QCW5M3A5CNFSM4FXPNMQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PSPRQ#issuecomment-517941190>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACVDG7YZBG6QDA7TV4GFGVLQCW5M3ANCNFSM4FXPNMQQ>
.
|
bah - let it rain brain onto github and forbid umbrellas - why it is not possible to create a global set of labels? |
i want a wish-list label everywhere |
The global menu replaces menu-bar, which means you haven't made the menu-bar invisible in the app; if you did, you wouldn't see it on Plasma panel. @agaida Konsole has removed |
Even when "show menu bar" is unchecked the plasma global menu still shows
the menu bar. So the workaround is useless.
I guess the qtermnal devs shouldn't really care if the app is misused on
other DEs.
Then the issue should indeed be closed provided there is a note on this
behavior in the manual.
…On Sat, Aug 3, 2019, 11:02 AM tsujan ***@***.***> wrote:
I got global menu (kde) enabled and menu bar hidden.
The global menu replaces menu-bar, which means you haven't made the
menu-bar invisible in the app; if you did, you wouldn't see it on Plasma
panel.
@agaida <https://github.com/agaida> Konsole has removed & from its
menu-bar. I don't think anything can be done here. This page will remain
open until eternity ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#485?email_source=notifications&email_token=ACVDG76IXJ2U2LVFZBQATNLQCXB25A5CNFSM4FXPNMQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PTBYY#issuecomment-517943523>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACVDG7YFHASKQHLG4KZQ77LQCXB25ANCNFSM4FXPNMQQ>
.
|
Strange and interesting! I'd checked pcmanfm-qt and FeatherPad under Plasma, with |
OK, I checked Plasma and saw what @ishovkun said (it's a mess). My conclusion: Since this is a terminal emulator, the Konsole solution can be used, namely reversing a part of #139. IMO, #139 was a mistake for a terminal emulator. Please note that if #139 is going to be reversed for menu-bar items, that should be done for all of them, not just for |
not reversed, extended - and yes, it will be fugly. |
To be honest: If some wide spread terminals can handle it we should be able to do so too 😎 And if it need some upstream bugs we should file them and work around if really needed. Having accelerators optional on the fly is legit, being able to change them on the fly is legit too. Or we agree that Qt isn't mature enough for "simple" tasks. |
@agaida I took a look at your attached screenshot, saw "mate-terminal" in it and installed it. mate-terminal has the same issue -- and more ;) You can't use The solution is VERY simple. We should remove menu-bar accelerators. #139 was done without due care in 2015.
As someone who has worked with GTK, Qt and a little EFL, I have the opposite view. Qt may make me angry from time to time, mostly because of Qt developer's inattention, that causes regressions (there are a few in 5.13). But, in practice, it has been mostly flexible. This isn't a Qt problem. Uninstalling mate-terminal... |
hmm - if you have a closer look at the applied screen shot - it should be possible to deactivate the accellerators completely. Should be the first hook in the keyboard shortcut settings - the upper one. |
I saw it later and am trying to do the same thing :D Don't curse me if I fail. |
Me? Cursing? Never. I'm far to shy ... |
Because `Alt+F` and some other shortcuts have meaning for a terminal emulator. Fixes #485
In this case, it was the right thing to do… but not anymore: #604 Please see if it works with localization too — I tested it without localization. |
Apply, compile and installs just fine - and works for me™ too. @yan12125 - please test and if no objections, please merge. GTM |
Oh, forgot to request a review from @yan12125! Doing it now... |
Useful Bash Alt shortcuts that aren't consumed anymore: Alt+F (forward), Alt+B (backward), Alt+D (delete to the word end), Alt+T (swap -- rarely usable), .... |
Maybe accelerators should be off by default |
They are, in the patch. I also thought they shouldn't be enabled by default with a terminal emulator and added a tooltip for the new option. |
ah, cool, don't noticed it |
Because `Alt+F` and some other shortcuts have meaning for a terminal emulator. Fixes #485
@yan12125 If you see this please also answer to #485 (comment) . I have a simple workaround for it. |
tsujan <notifications@github.com> 於 2019年8月19日 週一 上午12:07寫道:
Oops, I thought I've replied that. Yes I can reproduce the issue with
Qt 5.13. Out of curiousity - what's the workaround?
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks! I wanted to be sure that it wasn't something else. I'd added a comment to https://bugreports.qt.io/browse/QTBUG-62102. Unfortunately, they think the problem is in
A few lines of code for reimplementing |
Because `Alt+F` and some other shortcuts have meaning for a terminal emulator. Fixes lxqt#485
Expected Behavior
I should be able to use keys, such as Alt-f and Alt-h to control my shell as opposed to controlling qterminal. Fast access to the terminal menu entries is a secondary task.
Current Behavior
Cannot disable menu helpers such as Alt-f, Alt-h.
Possible Solution
Either introduce an option to disable the menu helpers, or simple disable them.
Steps to Reproduce (for bugs)
Context
I want to use normal emacs-style shell navigation, among other things.
System Information
The text was updated successfully, but these errors were encountered: