[Konsole-devel] [Bug 61667] Can't Ctrl+Insert to copy selected text to the clipboard
Dominique Devriese
devriese at kde.org
Sat Dec 20 14:13:55 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=61667
devriese at kde.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
everconfirmed|0 |1
------- Additional Comments From devriese at kde.org 2003-12-20 15:13 -------
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
More information about the konsole-devel
mailing list