[uim-commit] r750 - trunk/scm
tkng at freedesktop.org
tkng at freedesktop.org
Fri Mar 4 11:28:17 PST 2005
Author: tkng
Date: 2005-03-04 11:28:15 -0800 (Fri, 04 Mar 2005)
New Revision: 750
Modified:
trunk/scm/m17nlib.scm
Log:
* scm/m17nlib.scm:
-(m17nlib-press-key-handler): commit key event via im-commit-raw
if key event was not consumed.
Modified: trunk/scm/m17nlib.scm
===================================================================
--- trunk/scm/m17nlib.scm 2005-03-04 08:43:44 UTC (rev 749)
+++ trunk/scm/m17nlib.scm 2005-03-04 19:28:15 UTC (rev 750)
@@ -96,6 +96,7 @@
'((mc-id #f)
(on #f)
(showing-candidate #f))))
+
(define-record 'm17nlib-context m17nlib-context-rec-spec)
(define m17nlib-context-new-internal m17nlib-context-new)
@@ -268,12 +269,16 @@
(if (m17nlib-context-on mc)
(if (m17nlib-push-key mc key key-state)
#f ;; Discard key event
- (let ((commit-str (m17nlib-lib-get-commit-string mid)))
+ (let* ((result (m17nlib-lib-get-result mid))
+ (consumed? (car result))
+ (commit-str (cdr result)))
(if (string=? commit-str "")
(im-commit-raw mc)
(begin
(im-commit mc commit-str)
- (m17nlib-lib-commit mid)))))
+ (m17nlib-lib-commit mid)
+ (if (not consumed?)
+ (im-commit-raw mc))))))
(m17nlib-proc-direct-state mc key key-state))
(m17nlib-update-preedit mc)
(m17nlib-update-candidate mc))))
More information about the Uim-commit
mailing list