[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdeplasma-addons] applets/konsoleprofiles/package/contents/ui: Make usable by keyboard.
From: Eike Hein <hein () kde ! org>
Date: 2014-04-30 4:58:53
Message-ID: E1WfMbd-0007Je-Mc () scm ! kde ! org
[Download RAW message or body]
Git commit f959ecabf14bd9d1138adb7609ea69c7f6e2b2a3 by Eike Hein.
Committed on 30/04/2014 at 04:58.
Pushed by hein into branch 'master'.
Make usable by keyboard.
BUG:313734
M +14 -4 applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
http://commits.kde.org/kdeplasma-addons/f959ecabf14bd9d1138adb7609ea69c7f6e2b2a3
diff --git a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml \
b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml index \
903cd9f..99e8e36 100644
--- a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
+++ b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
@@ -28,8 +28,11 @@ Item {
property int minimumHeight: 300
function popupEventSlot(shown) {
- if(shown)
+ if (shown) {
view.forceActiveFocus();
+ } else {
+ view.currentIndex = -1;
+ }
}
PlasmaCore.DataSource {
@@ -105,6 +108,13 @@ Item {
model: profilesModel
clip: true
focus: true
+ keyNavigationWraps: true
+
+ onCurrentIndexChanged: {
+ if (currentIndex != -1) {
+ highlightItem.opacity = 1.0;
+ }
+ }
delegate: Item {
id: listdelegate
@@ -147,12 +157,12 @@ Item {
}
onEntered: {
- view.currentIndex = index
- view.highlightItem.opacity = 1
+ view.currentIndex = index;
+ view.highlightItem.opacity = 1.0;
}
onExited: {
- view.highlightItem.opacity = 0
+ view.highlightItem.opacity = 0;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic