Fix (?) problem with enter pressed on iconButton
authorMarcin Kaźmierczak <marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:08:51 +0000 (11:08 +0100)
committerMarcin Kaźmierczak <marcin@marcin-desktop.(none)>
Tue, 1 Mar 2011 10:08:51 +0000 (11:08 +0100)
src/mdictionary/qml/IconButton.qml

index 37825a7..4ac2ee7 100644 (file)
@@ -12,6 +12,10 @@ Rectangle {
 
     radius: 50
 
+    Keys.onReturnPressed: {
+        button.clicked();
+    }
+
     MouseArea {
         id: mouseArea
         anchors.centerIn: parent;