[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/kopete/chatwindow
From: Matt Rogers <mattr () kde ! org>
Date: 2009-03-20 13:01:33
Message-ID: 1237554093.741539.4984.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 941720 by mattr:
Make keypad 'Enter' also send messages by default.
Patch by Roman Spielerman. Thanks!
M +5 -2 kopetechatwindow.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp #941719:941720
@@ -357,8 +357,11 @@
chatSend = new KAction( KIcon("mail-send"), i18n( "&Send Message" ), coll );
coll->addAction( "chat_send", chatSend );
connect( chatSend, SIGNAL( triggered(bool) ), SLOT( slotSendMessage() ) );
- //Default to 'Return' for sending messages
- chatSend->setShortcut( QKeySequence(Qt::Key_Return) );
+ //Default to 'Return' and 'Enter' for sending messages
+ //'Return' is the key in the main part of the keyboard
+ //'Enter' is on the Numpad
+ KShortcut chatSendShortcut( QKeySequence(Qt::Key_Return), QKeySequence(Qt::Key_Enter) );
+ chatSend->setShortcut( chatSendShortcut );
chatSend->setEnabled( false );
chatSendFile = new KAction( KIcon("mail-attachment"), i18n( "Send File" ), coll );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic