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>
pull/10/head
Ray-V 4 years ago committed by Michele Calgaro
parent ee624711ca
commit 2af99da072
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -315,19 +315,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
lctrl->res(); lctrl->res();
win = new VButton ( this,"" ); lwin = new VButton ( this,"" );
win->resize ( 45,30 ); lwin->resize ( 50,30 );
win->move ( 5+lctrl->x() +lctrl->width(), sty+ ( 5*35 ) ); lwin->move ( lctrl->x() +lctrl->width() +5, sty+ ( 5*35 ) );
win->setText ( "Win" ); lwin->setText ( "LWin" );
win->setKeyCode ( 115 ); lwin->setKeyCode ( 133 );
win->setToggleButton ( true ); lwin->setToggleButton ( false );
mod_keys.append ( win ); connect ( lwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
win->res(); other_keys.append( lwin );
lwin->res();
lalt = new VButton ( this,"" ); lalt = new VButton ( this,"" );
lalt->resize ( 45,30 ); 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->setText ( "Alt" );
lalt->setKeyCode ( 64 ); lalt->setKeyCode ( 64 );
lalt->setToggleButton ( true ); lalt->setToggleButton ( true );
@ -353,9 +354,20 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ralt->res(); 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 = new VButton ( this,"" );
mnu->resize ( 45,30 ); mnu->resize ( 50,30 );
mnu->move ( 5+ralt->x() +ralt->width(), sty+ ( 5*35 ) ); mnu->move ( rwin->x() +rwin->width() +5, sty+ ( 5*35 ) );
mnu->setText ( "Menu" ); mnu->setText ( "Menu" );
mnu->setKeyCode ( 117 ); mnu->setKeyCode ( 117 );
mnu->setToggleButton ( false ); mnu->setToggleButton ( false );

@ -94,7 +94,8 @@ private:
VButton *lalt; VButton *lalt;
VButton *ralt; VButton *ralt;
VButton *win; VButton *lwin;
VButton *rwin;
VButton *mnu; VButton *mnu;
VButton *numl; VButton *numl;

Loading…
Cancel
Save