summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2021-02-15 12:02:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-15 12:08:36 +0900
commit69b02ced315987c543695bdb6cbb248c4c71a4de (patch)
tree9b926811e144f6c08f54c947376395492584d87f
parentfcaa775eb4036ae45d65251ffec200c158d7e52c (diff)
downloadkvkbd-69b02ced.tar.gz
kvkbd-69b02ced.zip
Add RWIN key and set both Win keys to non-toggle for xmodmap.
Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2af99da072d82ae809ef57f83911a7f4c45da1f5)
-rw-r--r--src/MainWidget.cpp34
-rw-r--r--src/MainWidget.h3
2 files changed, 25 insertions, 12 deletions
diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp
index be6aad5..8bbe5a3 100644
--- a/src/MainWidget.cpp
+++ b/src/MainWidget.cpp
@@ -315,19 +315,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
lctrl->res();
- win = new VButton ( this,"" );
- win->resize ( 45,30 );
- win->move ( 5+lctrl->x() +lctrl->width(), sty+ ( 5*35 ) );
- win->setText ( "Win" );
- win->setKeyCode ( 115 );
- win->setToggleButton ( true );
- mod_keys.append ( win );
- win->res();
+ lwin = new VButton ( this,"" );
+ lwin->resize ( 50,30 );
+ lwin->move ( lctrl->x() +lctrl->width() +5, sty+ ( 5*35 ) );
+ lwin->setText ( "LWin" );
+ lwin->setKeyCode ( 133 );
+ lwin->setToggleButton ( false );
+ connect ( lwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
+ other_keys.append( lwin );
+ lwin->res();
lalt = new VButton ( this,"" );
lalt->resize ( 45,30 );
- lalt->move ( 5+win->x() +win->width(), sty+ ( 5*35 ) );
+ lalt->move ( lwin->x() +lwin->width() +5, sty+ ( 5*35 ) );
lalt->setText ( "Alt" );
lalt->setKeyCode ( 64 );
lalt->setToggleButton ( true );
@@ -353,9 +354,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ralt->res();
+ rwin = new VButton ( this,"" );
+ rwin->resize ( 50,30 );
+ rwin->move ( ralt->x() +ralt->width() +5, sty+ ( 5*35 ) );
+ rwin->setText ( "RWin" );
+ rwin->setKeyCode ( 134 );
+ rwin->setToggleButton ( false );
+ connect ( rwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
+ other_keys.append( rwin );
+ rwin->res();
+
+
mnu = new VButton ( this,"" );
- mnu->resize ( 45,30 );
- mnu->move ( 5+ralt->x() +ralt->width(), sty+ ( 5*35 ) );
+ mnu->resize ( 50,30 );
+ mnu->move ( rwin->x() +rwin->width() +5, sty+ ( 5*35 ) );
mnu->setText ( "Menu" );
mnu->setKeyCode ( 117 );
mnu->setToggleButton ( false );
diff --git a/src/MainWidget.h b/src/MainWidget.h
index ba5b8ae..e2eb947 100644
--- a/src/MainWidget.h
+++ b/src/MainWidget.h
@@ -94,7 +94,8 @@ private:
VButton *lalt;
VButton *ralt;
- VButton *win;
+ VButton *lwin;
+ VButton *rwin;
VButton *mnu;
VButton *numl;