diff options
author | Ray-V <ray-v@inbox.lv> | 2021-03-17 15:32:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-03-17 15:47:46 +0900 |
commit | 9baea3543b5f2680e65c2274b5c75eb7bfec2297 (patch) | |
tree | 8f88aae5bb872bf2d4f19306dd0469c63fd9b822 | |
parent | f4e9bde338651a9085e4651c70312fa8e5f94d7f (diff) | |
download | kvkbd-9baea3543b5f2680e65c2274b5c75eb7bfec2297.tar.gz kvkbd-9baea3543b5f2680e65c2274b5c75eb7bfec2297.zip |
Added dead key representation.
Signed-off-by: Ray-V <ray-v@inbox.lv>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | src/MainWidget.cpp | 23 |
2 files changed, 20 insertions, 4 deletions
@@ -16,7 +16,6 @@ Features include: * dynamic detection of languages * Auto font resize * button repeat - * CSS Color themes CONTRIBUTING diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp index ea6fc9b..3480f1b 100644 --- a/src/MainWidget.cpp +++ b/src/MainWidget.cpp @@ -74,6 +74,7 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const int sty=15; extent_visible=false; + setFocusPolicy(TQ_NoFocus); TDEConfig *cfg = TDEApplication::kApplication()->config(); if (cfg) { @@ -90,7 +91,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const other_keys.append(esc); connect ( esc,TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) ); - for ( int a=0;a<4;a++ ) { 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() ) ); t->start ( 500, FALSE ); - setFocusPolicy ( TQ_NoFocus ); - int padx= 554; TQString txt[9] = { "Ho\nme", TQString::fromUtf8("▲"), "Pg\nUp", TQString::fromUtf8("◄"), " ", TQString::fromUtf8("►"), @@ -1064,6 +1062,7 @@ struct codepair { unsigned short keysym; unsigned short ucs; } keysymtab[] = { + { 0x0000, 0x0020 }, /* NoSymbol -> <- space */ { 0x01a1, 0x0104 }, /* Aogonek Ą LATIN CAPITAL LETTER A WITH OGONEK */ { 0x01a2, 0x02d8 }, /* breve ˘ BREVE */ { 0x01a3, 0x0141 }, /* Lstroke Ł LATIN CAPITAL LETTER L WITH STROKE */ @@ -1302,6 +1301,7 @@ struct codepair { { 0x06aa, 0x045a }, /* Cyrillic_nje њ CYRILLIC SMALL LETTER NJE */ { 0x06ab, 0x045b }, /* Serbian_tshe ћ CYRILLIC SMALL LETTER TSHE */ { 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 */ { 0x06af, 0x045f }, /* Cyrillic_dzhe џ CYRILLIC SMALL LETTER DZHE */ { 0x06b0, 0x2116 }, /* numerosign № NUMERO SIGN */ @@ -1317,6 +1317,7 @@ struct codepair { { 0x06ba, 0x040a }, /* Cyrillic_NJE Њ CYRILLIC CAPITAL LETTER NJE */ { 0x06bb, 0x040b }, /* Serbian_TSHE Ћ CYRILLIC CAPITAL LETTER TSHE */ { 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 */ { 0x06bf, 0x040f }, /* Cyrillic_DZHE Џ CYRILLIC CAPITAL LETTER DZHE */ { 0x06c0, 0x044e }, /* Cyrillic_yu ю CYRILLIC SMALL LETTER YU */ @@ -1837,6 +1838,22 @@ struct codepair { { 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */ { 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */ { 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) |