summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2021-02-20 18:05:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-20 18:07:59 +0900
commit8bbaa8f9fed784d11bda8ea90ef94bf47f92b90d (patch)
treeefeea7431b952f66518220921d0ffd6eaf1ccf9a /src
parent3db68d2ce202f93def76a8b2a4d7f8f3bca04a8d (diff)
downloadkvkbd-8bbaa8f9fed784d11bda8ea90ef94bf47f92b90d.tar.gz
kvkbd-8bbaa8f9fed784d11bda8ea90ef94bf47f92b90d.zip
Fixed several keycodes. This relates to PR #9.
Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/MainWidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp
index 9d3bd5d..43d0516 100644
--- a/src/MainWidget.cpp
+++ b/src/MainWidget.cpp
@@ -294,7 +294,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
sl->res();
rshft = new VButton ( this,"" );
- rshft->setKeyCode ( 50 );
+ rshft->setKeyCode ( 62 );
rshft->move ( stx+ ( ( R4LEN +3 ) *35 ) +lshft->width() +5,sty+ ( 4*35 ) );
rshft->resize ( 68,30 );
rshft->setText ( "Shift" );
@@ -343,7 +343,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ralt->resize ( 45,30 );
ralt->move ( 5+space->x() +space->width(), sty+ ( 5*35 ) );
ralt->setText ( "AltGr" );
- ralt->setKeyCode ( 113 );
+ ralt->setKeyCode ( 108 );
ralt->setToggleButton ( true );
mod_keys.append ( ralt );
ralt->res();
@@ -361,7 +361,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
mnu->resize ( 50,30 );
mnu->move ( rwin->x() +rwin->width() +6, sty+ ( 5*35 ) );
mnu->setText ( "Menu" );
- mnu->setKeyCode ( 117 );
+ mnu->setKeyCode ( 135 );
mnu->setToggleButton ( false );
connect ( mnu, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
other_keys.append(mnu);
@@ -371,7 +371,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
rctrl->resize ( 45,30 );
rctrl->move ( 5+mnu->x() +mnu->width(), sty+ ( 5*35 ) );
rctrl->setText ( "Ctrl" );
- rctrl->setKeyCode ( 37 );
+ rctrl->setKeyCode ( 105 );
rctrl->setToggleButton ( true );
mod_keys.append ( rctrl );
rctrl->res();
@@ -417,7 +417,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
"End", TQString::fromUtf8("▼"), "Pg\nDn" };
TQString nump[9] = {"7","8","9","4","5","6","1","2","3"};
int val=0;
- int nval[9] = {16,17,18,13,14,15,10,11,12};
+ int nval[9] = {79,80,81,83,84,85,87,88,89};
int cval[9] = {79,80,81,83,84,85,87,88,89};
for (int a=2;a<5;a++){
for (int b=0;b<3;b++){
@@ -437,7 +437,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ins->move(padx,sty+(5*35));
ins->res();
ins->setText("Ins");
- ins->setKeyCode(19,90);
+ ins->setKeyCode(90,90);
ins->setShiftText("0");
numl_keys.append(ins);
@@ -449,7 +449,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
del->res();
del->setText("Del");
del->setShiftText(".");
- del->setKeyCode(60,91);
+ del->setKeyCode(91,91);
numl_keys.append(del);
connect ( del, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
@@ -469,7 +469,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
div->move(padx+(35),sty+(1*35));
div->res();
div->setText("/");
- div->setKeyCode(112);
+ div->setKeyCode(106);
other_keys.append(div);
connect ( div, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
@@ -486,7 +486,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
ent->move(padx+70+35,sty+(4*35));
ent->res();
ent->setText("Ent");
- ent->setKeyCode(36);
+ ent->setKeyCode(104);
other_keys.append(ent);
connect ( ent, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );