src/configDialog.cpp

changeset 233
524cb0833027
parent 214
28e0b37156be
child 237
ec77f6e9a19f
--- a/src/configDialog.cpp	Tue May 21 14:07:33 2013 +0300
+++ b/src/configDialog.cpp	Tue May 21 14:21:26 2013 +0300
@@ -774,21 +774,6 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 void KeySequenceDialog::keyPressEvent (QKeyEvent* ev) {
-	seq = ev->key ();
-	
-	switch (seq) {
-	case Qt::Key_Shift:
-	case Qt::Key_Control:
-	case Qt::Key_Alt:
-	case Qt::Key_Meta:
-		seq = 0;
-		break;
-	
-	default:
-		break;
-	}
-	
-	seq = (seq | ev->modifiers ());
-	
+	seq = ev->key () + ev->modifiers ();
 	updateOutput ();
 }
\ No newline at end of file

mercurial