Diffstat (limited to 'inputmethods/multikey/keyboard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index 3e43978..d0cfa51 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp | |||
@@ -461,25 +461,26 @@ void Keyboard::resetState() | |||
461 | { | 461 | { |
462 | schar = mchar = echar = 0; | 462 | schar = mchar = echar = 0; |
463 | picks->resetState(); | 463 | picks->resetState(); |
464 | } | 464 | } |
465 | 465 | ||
466 | /* korean input functions {{{1 | 466 | /* korean input functions {{{1 |
467 | * | 467 | * |
468 | * TODO | 468 | * TODO |
469 | * one major problem with this implementation is that you can't move the | 469 | * one major problem with this implementation is that you can't move the |
470 | * cursor after inputing korean chars, otherwise it will eat up and replace | 470 | * cursor after inputing korean chars, otherwise it will eat up and replace |
471 | * the char before the cursor you move to. fix that | 471 | * the char before the cursor you move to. fix that |
472 | * | 472 | * |
473 | * make a kor/eng swaping key | 473 | * make backspace delete one single char, not the whole thing if still |
474 | * editing. | ||
474 | * | 475 | * |
475 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 476 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
476 | * | 477 | * |
477 | * how korean input works | 478 | * how korean input works |
478 | * | 479 | * |
479 | * all following chars means unicode char value and are in hex | 480 | * all following chars means unicode char value and are in hex |
480 | * | 481 | * |
481 | * ÃÊÀ½ = schar (start char) | 482 | * ÃÊÀ½ = schar (start char) |
482 | * ÁßÀ½ = mchar (middle char) | 483 | * ÁßÀ½ = mchar (middle char) |
483 | * ³¡À½ = echar (end char) | 484 | * ³¡À½ = echar (end char) |
484 | * | 485 | * |
485 | * there are 19 schars. unicode position is at 1100 - 1112 | 486 | * there are 19 schars. unicode position is at 1100 - 1112 |
@@ -761,26 +762,25 @@ ushort Keyboard::constoe(const ushort c) { | |||
761 | } | 762 | } |
762 | 763 | ||
763 | } | 764 | } |
764 | } | 765 | } |
765 | 766 | ||
766 | 767 | ||
767 | // Keys::Keys {{{1 | 768 | // Keys::Keys {{{1 |
768 | 769 | ||
769 | Keys::Keys() { | 770 | Keys::Keys() { |
770 | 771 | ||
771 | Config config("locale"); | 772 | Config config("locale"); |
772 | config.setGroup( "Language" ); | 773 | config.setGroup( "Language" ); |
773 | QString l = config.readEntry( "Language" ); | 774 | QString l = config.readEntry( "Language" , "en" ); |
774 | if(l.isEmpty()) l = "en"; | ||
775 | 775 | ||
776 | QString key_map = QPEApplication::qpeDir() + "/share/multikey/" | 776 | QString key_map = QPEApplication::qpeDir() + "/share/multikey/" |
777 | + /* l // testing korean for now */ | 777 | + /* l // testing korean for now */ |
778 | + "ko.keymap"; | 778 | + "ko.keymap"; |
779 | 779 | ||
780 | setKeysFromFile(key_map); | 780 | setKeysFromFile(key_map); |
781 | } | 781 | } |
782 | 782 | ||
783 | Keys::Keys(const char * filename) { | 783 | Keys::Keys(const char * filename) { |
784 | 784 | ||
785 | setKeysFromFile(filename); | 785 | setKeysFromFile(filename); |
786 | } | 786 | } |