summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ) ) );