Bug 162209 - Konsole menu steals the shortcut from the applications
Summary: Konsole menu steals the shortcut from the applications
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 164202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-17 14:07 UTC by András Manţia
Modified: 2008-12-29 01:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2008-05-17 14:07:36 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

This is kind'a opposite of 137079. In the current svn version Konsole steals the shortcut keys used for its menu from the embedded applications. For example in Midnight Commander Alt-C is the shortcut to change the path. Now it activates the Scrollback menu. Annoying and even somewhat dangerous, as if you were used to use shortcuts, you might activate a menu entry that messes up your work.
In KDE3 and KDE 4.0.x this was not the case, please remove this behavior. Consistency is nice, but Konsole is a special case, it should not steal any shortcut from the terminal applications.
Comment 1 Robert Knight 2008-05-17 16:05:04 UTC
> In KDE3 and KDE 4.0.x this was not the case, please remove this behavior. 
> Consistency is nice, but Konsole is a special case, it should not steal any 
> shortcut from the terminal applications. 

I think some users will be upset either way.  Unfortunately there isn't a way I know of to detect whether the current shell program uses Alt+Letter shortcuts or not.  I think the best I can do here is to provide an option to disable the Alt+Letter shortcuts.

> Annoying and even somewhat dangerous, as if you were used to use shortcuts, 
> you might activate a menu entry that messes up your work. 

Not sure I agree about it being particularly 'dangerous' but I can see it being annoying either way.  I'll probably set the default to menu accessors enabled for the benefit of newer terminal users who are probably more likely to be confused by non-working accessors.
Comment 2 Kelvie Wong 2008-05-27 00:27:18 UTC
Also, to note, I think the default key binding for forward-word in most shells is Alt+F, which now pops up the File menu.

You can also imagine my surprise when I tried to (in emacs) go forward a word (Alt+F) and then fill a paragraph (Alt-Q) and have Konsole quit on me.

I think that these menu accessors should be disabled by default.
Comment 3 Alexei 2008-05-28 16:22:26 UTC
I have the same problem with rtorrent, shortcut Ctrl+S starts downloading and  Ctrl+Q - exit from programm. In konsole it's "suspend" and "resume" output. How to disable this function? there are no this options in konsole shortcut settings.
Comment 4 Robert Knight 2008-05-28 16:36:37 UTC
> I have the same problem with rtorrent, shortcut Ctrl+S starts downloading
>  and  Ctrl+Q - exit from program. 

That is a different problem.  It is a bug which has been fixed in KDE 4.1 - the warning indicator is now only shown if flow control is actually enabled in the terminal.  Emacs and presumably rtorrent turn off flow control when they start.

> How to disable this function? there are no this options in konsole
>  shortcut settings. 

You can disable the warning indicator by unchecking the flow control warning option on the "Advanced" tab in Konsole's settings dialog.

Comment 5 argonel 2008-06-02 04:14:30 UTC
so bug #4400 gets fixed, 7 years later :) 

saw a complaint about this on #debian today.  http://bugs.kde.org/show_bug.cgi?id=4400 :)
Comment 6 YANG Shouxun 2008-06-02 04:29:34 UTC
This problem troubles me, too. The version I'm trying is 4.0.80-1. I agree both enabling and disabling may upset some users, as KDE is reaching wider audience. At least there should be an option to disable those accelerators. Disabling by default is ideal to me, though.
Comment 7 Robert Knight 2008-06-02 09:40:40 UTC
Unfortunately the option was not added before the string freeze.  So for KDE 4.1 I'll have to go with disabling the menu shortcuts by default and adding an option in konsolerc to enable them.  I will drop the UI in for 4.2.
Comment 8 Thiago Macieira 2008-06-16 17:06:43 UTC
Also note that Alt alone no longer activates the menu bar (no more modifier-only shortcuts in KDE 4). So, if Alt+Letter doesn't activate the menu drop-down, the menu will be completely inaccessible from the keyboard.

So Konsole should provide an alternative shortcut to opening the menubar, if possible.
Comment 9 Christophe Marin 2008-06-16 17:08:14 UTC
*** Bug 164202 has been marked as a duplicate of this bug. ***
Comment 10 roger 2008-06-27 20:10:25 UTC
Very annoying when using emacs.  Some way of disabling particular accelerators would be great.
Comment 11 Robert Knight 2008-06-27 23:18:19 UTC
SVN commit 825353 by knight:

Remove accelerators from top-level menu items to avoid conflicting
with Alt+Letter shortcuts in the terminal.

* Use KAcceleratorManager::setNoAccel() to avoid generating
accelerators for non-standard top-level items.
* Strip ampersand characters from the text of standard top-level
menu items (File, Edit, View, Settings, Help) which have accelerators
defined in ui_standards.rc after creating the menus with XMLGUI

BUG: 162209


 M  +23 -3     MainWindow.cpp  
 M  +1 -0      MainWindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825353
Comment 12 Joe (theWordy) Philbrook 2008-12-29 01:01:21 UTC
Please note: that whether this is an option in konsolerc or included in the  UI as Robert Knight suggests might be there for 4.2, Disabling/enabling the multiple accessors and an assignable general menu access keyboard shortcut key such as kde 3.5 set to <alt>+<ctrl>+M by default can be a separate choice.

The KDE Konsole handbook from the help menu lists some shortcuts for many individual menu items. Most of which appear to be assignable in the menu>settings>configure shortcuts pop-up And most of which I'd want to leave disabled to leave more shortcuts available to shell applications such as mc and alpine. And because I don't want to have to remember so many of them. What I do want is to still be able to activate the menu itself with some shortcut (preferably of my choosing, in which case it will be <win>+<alt>+<space>)
That would hopefully allow me to then use the cursor control keys to navigate my way to whatever option I might want to use (without having to dust off my {expletive deleted} trackball to get there...)

But I don't see an "activate menu" choice in the 26 items (including "about kde" for which it offers me the opportunity to set a shortcut...)

 PLEASE! 

I'm using kubuntu 8.10 which was updated via apt-get upgrade from the official kubunto repositories just last week so my kde version is 4.1.3...