Added dead key representation.

Signed-off-by: Ray-V <ray-v@inbox.lv>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9baea3543b)
r14.0.x
Ray-V 4 years ago committed by Michele Calgaro
parent 936a0db0e8
commit 0ed64e3a96
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -16,7 +16,6 @@ Features include:
* dynamic detection of languages * dynamic detection of languages
* Auto font resize * Auto font resize
* button repeat * button repeat
* CSS Color themes
CONTRIBUTING CONTRIBUTING

@ -74,6 +74,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
int sty=15; int sty=15;
extent_visible=false; extent_visible=false;
setFocusPolicy(TQ_NoFocus);
TDEConfig *cfg = TDEApplication::kApplication()->config(); TDEConfig *cfg = TDEApplication::kApplication()->config();
if (cfg) if (cfg)
{ {
@ -90,7 +91,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
other_keys.append(esc); other_keys.append(esc);
connect ( esc,TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) ); connect ( esc,TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
for ( int a=0;a<4;a++ ) for ( int a=0;a<4;a++ )
{ {
VButton *f = new VButton ( this,"" ); VButton *f = new VButton ( this,"" );
@ -406,8 +406,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
connect ( t, TQT_SIGNAL ( timeout() ), this, TQT_SLOT ( queryModState() ) ); connect ( t, TQT_SIGNAL ( timeout() ), this, TQT_SLOT ( queryModState() ) );
t->start ( 500, FALSE ); t->start ( 500, FALSE );
setFocusPolicy ( TQ_NoFocus );
int padx= 554; int padx= 554;
TQString txt[9] = { "Ho\nme", TQString::fromUtf8(""), "Pg\nUp", TQString txt[9] = { "Ho\nme", TQString::fromUtf8(""), "Pg\nUp",
TQString::fromUtf8(""), " ", TQString::fromUtf8(""), TQString::fromUtf8(""), " ", TQString::fromUtf8(""),
@ -1064,6 +1062,7 @@ struct codepair {
unsigned short keysym; unsigned short keysym;
unsigned short ucs; unsigned short ucs;
} keysymtab[] = { } keysymtab[] = {
{ 0x0000, 0x0020 }, /* NoSymbol -> <- space */
{ 0x01a1, 0x0104 }, /* Aogonek Ą LATIN CAPITAL LETTER A WITH OGONEK */ { 0x01a1, 0x0104 }, /* Aogonek Ą LATIN CAPITAL LETTER A WITH OGONEK */
{ 0x01a2, 0x02d8 }, /* breve ˘ BREVE */ { 0x01a2, 0x02d8 }, /* breve ˘ BREVE */
{ 0x01a3, 0x0141 }, /* Lstroke Ł LATIN CAPITAL LETTER L WITH STROKE */ { 0x01a3, 0x0141 }, /* Lstroke Ł LATIN CAPITAL LETTER L WITH STROKE */
@ -1302,6 +1301,7 @@ struct codepair {
{ 0x06aa, 0x045a }, /* Cyrillic_nje њ CYRILLIC SMALL LETTER NJE */ { 0x06aa, 0x045a }, /* Cyrillic_nje њ CYRILLIC SMALL LETTER NJE */
{ 0x06ab, 0x045b }, /* Serbian_tshe ћ CYRILLIC SMALL LETTER TSHE */ { 0x06ab, 0x045b }, /* Serbian_tshe ћ CYRILLIC SMALL LETTER TSHE */
{ 0x06ac, 0x045c }, /* Macedonia_kje ќ CYRILLIC SMALL LETTER KJE */ { 0x06ac, 0x045c }, /* Macedonia_kje ќ CYRILLIC SMALL LETTER KJE */
{ 0x06ad, 0x0491 }, /* Ukrainian_ghe_with_upturn ґ CYRILLIC SMALL LETTER GHE WITH UPTURN */
{ 0x06ae, 0x045e }, /* Byelorussian_shortu ў CYRILLIC SMALL LETTER SHORT U */ { 0x06ae, 0x045e }, /* Byelorussian_shortu ў CYRILLIC SMALL LETTER SHORT U */
{ 0x06af, 0x045f }, /* Cyrillic_dzhe џ CYRILLIC SMALL LETTER DZHE */ { 0x06af, 0x045f }, /* Cyrillic_dzhe џ CYRILLIC SMALL LETTER DZHE */
{ 0x06b0, 0x2116 }, /* numerosign № NUMERO SIGN */ { 0x06b0, 0x2116 }, /* numerosign № NUMERO SIGN */
@ -1317,6 +1317,7 @@ struct codepair {
{ 0x06ba, 0x040a }, /* Cyrillic_NJE Њ CYRILLIC CAPITAL LETTER NJE */ { 0x06ba, 0x040a }, /* Cyrillic_NJE Њ CYRILLIC CAPITAL LETTER NJE */
{ 0x06bb, 0x040b }, /* Serbian_TSHE Ћ CYRILLIC CAPITAL LETTER TSHE */ { 0x06bb, 0x040b }, /* Serbian_TSHE Ћ CYRILLIC CAPITAL LETTER TSHE */
{ 0x06bc, 0x040c }, /* Macedonia_KJE Ќ CYRILLIC CAPITAL LETTER KJE */ { 0x06bc, 0x040c }, /* Macedonia_KJE Ќ CYRILLIC CAPITAL LETTER KJE */
{ 0x06bd, 0x0490 }, /* Ukrainian_GHE_WITH_UPTURN Ґ CYRILLIC CAPITAL LETTER GHE WITH UPTURN */
{ 0x06be, 0x040e }, /* Byelorussian_SHORTU Ў CYRILLIC CAPITAL LETTER SHORT U */ { 0x06be, 0x040e }, /* Byelorussian_SHORTU Ў CYRILLIC CAPITAL LETTER SHORT U */
{ 0x06bf, 0x040f }, /* Cyrillic_DZHE Џ CYRILLIC CAPITAL LETTER DZHE */ { 0x06bf, 0x040f }, /* Cyrillic_DZHE Џ CYRILLIC CAPITAL LETTER DZHE */
{ 0x06c0, 0x044e }, /* Cyrillic_yu ю CYRILLIC SMALL LETTER YU */ { 0x06c0, 0x044e }, /* Cyrillic_yu ю CYRILLIC SMALL LETTER YU */
@ -1837,6 +1838,22 @@ struct codepair {
{ 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */ { 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */
{ 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */ { 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */
{ 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */ { 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */
{ 0xfe50, 0x0060 }, /* dead_grave ` */
{ 0xfe51, 0x00b4 }, /* dead_acute ´ */
{ 0xfe52, 0x02c6 }, /* dead_circumflex ˆ */
{ 0xfe53, 0x02dc }, /* dead_tilde ˜ small tilde */
{ 0xfe54, 0x00af }, /* dead_macron ¯ */
{ 0xfe55, 0x02d8 }, /* dead_breve ˘ */
{ 0xfe56, 0x02d9 }, /* dead_abovedot ˙ */
{ 0xfe57, 0x00a8 }, /* dead_diaeresis ¨ */
{ 0xfe58, 0x02da }, /* dead_abovering ° */
{ 0xfe59, 0x02dd }, /* dead_doubleacute ˝ */
{ 0xfe5a, 0x02c7 }, /* dead_caron ˇ */
{ 0xfe5b, 0x00b8 }, /* dead_cedilla ¸ */
{ 0xfe5c, 0x02db }, /* dead_ogonek ˛ */
{ 0xfe5d, 0x0269 }, /* dead_iota ɩ Latin small iota */
{ 0xfe64, 0x1fbf }, /* dead_abovecomma Greek Psili */
{ 0xfe65, 0x1ffe }, /* dead_abovereversedcomma Greek Dasia */
}; };
long MainWidget::keysym2ucs(KeySym keysym) long MainWidget::keysym2ucs(KeySym keysym)

Loading…
Cancel
Save