Summary: | Can't use Ctrl+something shortcuts in konsole | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Jeffery Yoder <jeffery.yoder> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.2.1 | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jeffery Yoder
2003-07-25 17:45:57 UTC
I can confirm this bug, and also know its cause. In fact, you cannot use any Ctrl+something key sequence as a shortcut for any sort of action ( app-local or global ) in konsole, because of the following piece of code in TEWidget.cpp: // Override any Ctrl+<key> accelerator when pressed with the keyboard // focus in TEWidget, so that the key will be passed to the terminal instead. bool TEWidget::event( QEvent *e ) { if ( e->type() == QEvent::AccelOverride ) { QKeyEvent *ke = static_cast<QKeyEvent *>( e ); KKey key( ke ); int keyCodeQt = key.keyCodeQt(); if ( ke->state() == Qt::ControlButton ) { ke->accept(); return true; } This causes any Ctrl+something keypresses to be overridden, and not tested for containing a shortcut. This is confusing for users, as they do not know that this is the case, and I am working on another bug report on the Debian BTS about the same thing. It was also about Ctrl+Insert, this seems to be a common key sequence among our users. I don't know how this should be solved. I know the override is there for a reason. Perhaps Ctrl+Insert should not be overridden as a special case. I can provide you with a patch that does that if you want it. cheers domi Note: this bug was also reported as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=203709 cheers domi See http://bugs.kde.org/show_bug.cgi?id=48103 and http://bugs.kde.org/show_bug.cgi?id=41601 Those two bugreports deal with konsole embedded as part though. I don't think it is strictly necessary to block ctrl-key shortcuts in a stand-alone konsole as well. That should then be combined with a dialog as in http://bugs.kde.org/show_bug.cgi?id=74396 that explains that using a control-key shortcut may have unintended consequences. *** Bug has been marked as fixed ***. This is behaviour still exists in 3.2.3. Fixed for KDE 3.3, has/will not be fixed KDE 3.2.x |