A multilingual input method framework
Revisão | f4dc92fdf3ad13afcf6bc227fc6c0f78bba09b48 (tree) |
---|---|
Hora | 2014-01-04 03:40:25 |
Autor | Jae-hyeon Park <jhyeon@gmai...> |
Commiter | Jae-hyeon Park |
Fix a bug in byeoru menu
* scm/byeoru.scm
@@ -1752,7 +1752,7 @@ | ||
1752 | 1752 | (im-select-candidate bc compensated-n))) |
1753 | 1753 | |
1754 | 1754 | (define (byeoru-cancel-conv bc) |
1755 | - (im-deactivate-candidate-selector bc) | |
1755 | + (byeoru-deactivate-candidate-selector bc) | |
1756 | 1756 | (case (byeoru-context-mode bc) |
1757 | 1757 | ((conv) |
1758 | 1758 | (byeoru-context-set-mode! bc 'hangul) |
@@ -1779,7 +1779,7 @@ | ||
1779 | 1779 | (byeoru-context-set-conv-hist! |
1780 | 1780 | bc (byeoru-exclusive-cons (cons key (car cand)) |
1781 | 1781 | (byeoru-context-conv-hist bc))) |
1782 | - (im-deactivate-candidate-selector bc) | |
1782 | + (byeoru-deactivate-candidate-selector bc) | |
1783 | 1783 | (byeoru-context-set-mode! bc 'hangul) |
1784 | 1784 | (ustr-set-former-seq! word (ustr-latter-seq convr)))) |
1785 | 1785 |
@@ -1792,7 +1792,7 @@ | ||
1792 | 1792 | bc (byeoru-take (byeoru-exclusive-cons str cache string=?) |
1793 | 1793 | byeoru-symbol-cache-size))) |
1794 | 1794 | |
1795 | - (im-deactivate-candidate-selector bc) | |
1795 | + (byeoru-deactivate-candidate-selector bc) | |
1796 | 1796 | (case (byeoru-context-mode bc) |
1797 | 1797 | ((menu) |
1798 | 1798 | (let ((cand (list-ref cands (byeoru-context-menu-no bc)))) |
@@ -1956,7 +1956,11 @@ | ||
1956 | 1956 | |
1957 | 1957 | (define (byeoru-deactivate-candidate-selector bc) |
1958 | 1958 | (if (not (eq? (byeoru-context-mode bc) 'hangul)) |
1959 | - (im-deactivate-candidate-selector bc))) | |
1959 | + (let ((cand-no (byeoru-context-cand-no bc)) | |
1960 | + (menu-no (byeoru-context-menu-no bc))) | |
1961 | + (im-deactivate-candidate-selector bc) | |
1962 | + (byeoru-context-set-cand-no! bc cand-no) | |
1963 | + (byeoru-context-set-menu-no! bc menu-no)))) | |
1960 | 1964 | |
1961 | 1965 | (define (byeoru-reset-handler bc) |
1962 | 1966 | (if (byeoru-context-on? bc) |