emacs bindings: Allow Alt as Modifier key
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
Tue, 9 Mar 2010 19:55:20 +0000 (20:55 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 1 May 2010 16:36:46 +0000 (18:36 +0200)
src/uisupport/multilineedit.cpp

index 69e8f6c..b856954 100644 (file)
@@ -349,7 +349,9 @@ void MultiLineEdit::keyPressEvent(QKeyEvent *event) {
         return;
       }
     }
-    else if(event->modifiers() & Qt::MetaModifier) {
+    else if(event->modifiers() & Qt::MetaModifier ||
+            event->modifiers() & Qt::AltModifier)
+    {
       switch(event->key()) {
       case Qt::Key_Right:
         moveCursor(QTextCursor::WordRight);