From kde-commits Mon Apr 13 09:11:45 2009 From: =?utf-8?q?Bj=C3=B6rn=20Ruberg?= Date: Mon, 13 Apr 2009 09:11:45 +0000 To: kde-commits Subject: playground/base/plasma/applets/plasmaboard Message-Id: <1239613905.108748.24294.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123961392713580 SVN commit 953032 by ruberg: Arrow for the Capslock key M +1 -1 CMakeLists.txt A CapsKey.cpp [License: GPL (v2+)] A CapsKey.h [License: GPL (v2+)] M +1 -1 ShiftKey.cpp M +2 -2 widget.cpp --- trunk/playground/base/plasma/applets/plasmaboard/CMakeLists.txt #953031:953032 @@ -13,7 +13,7 @@ ) # We add our source code here -set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp FuncKey.cpp EnterKey.cpp BackspaceKey.cpp TabKey.cpp ShiftKey.cpp) +set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp FuncKey.cpp EnterKey.cpp BackspaceKey.cpp TabKey.cpp ShiftKey.cpp CapsKey.cpp) # Now make sure all files get to the right place kde4_add_plugin(plasma_applet_plasmaboard ${plasmaboard_SRCS}) --- trunk/playground/base/plasma/applets/plasmaboard/ShiftKey.cpp #953031:953032 @@ -23,7 +23,7 @@ #include ShiftKey::ShiftKey(PlasmaboardWidget *parent) : FuncKey::FuncKey(parent){ - setKeycode(XK_Shift_L, true); + setKeycode(XK_Shift_L, false); } ShiftKey::~ShiftKey() { --- trunk/playground/base/plasma/applets/plasmaboard/widget.cpp #953031:953032 @@ -26,6 +26,7 @@ #include "BackspaceKey.h" #include "TabKey.h" #include "ShiftKey.h" +#include "CapsKey.h" #include #include #include @@ -222,6 +223,7 @@ funcKeys[0] = new BackspaceKey(this); funcKeys[1] = new TabKey(this); funcKeys[2] = new EnterKey(this); + funcKeys[3] = new CapsKey(this); funcKeys[4] = new ShiftKey(this); funcKeys[5] = new ShiftKey(this); @@ -352,8 +354,6 @@ alphaKeys[46]->setKeycode(60); alphaKeys[47]->setKeycode(61); - funcKeys[3]->setKeycode(XK_Caps_Lock, true); - funcKeys[3]->setText("CAPS"); funcKeys[6]->setKeycode(XK_Control_L, false); funcKeys[6]->setText("CTL"); funcKeys[7]->setKeycode(XK_Meta_L, false);