Revision: 5568a7d2626d
Author: KIHARA Hideto <[email protected]>
Date: Thu Aug 9 03:51:05 2012
Log: Fix bug that <Shift>left/right key erases current selection text
on Google Chrome.
* scm/tutcode.scm
- (tutcode-key-press-handler-internal):
Not to update preedit when pending rk is empty.
(related fix: 32fafd5d7ecdebd996bee075826ba32baff42073)
http://code.google.com/p/uim/source/detail?r=5568a7d2626d
Modified:
/scm/tutcode.scm
=======================================
--- /scm/tutcode.scm Sat Jun 16 18:36:54 2012
+++ /scm/tutcode.scm Thu Aug 9 03:51:05 2012
@@ -5864,7 +5864,8 @@
(case (tutcode-context-state pc)
((tutcode-state-on)
(tutcode-proc-state-on pc key key-state)
- (if (or tutcode-show-pending-rk?
+ (if (or (and tutcode-show-pending-rk?
+ (pair? (rk-context-seq (tutcode-context-rk-context
pc))))
;; ¸ò¤¼½ñ¤ÊÑ´¹¤äÉô¼ó¹çÀ®ÊÑ´¹³«»Ï¡£¢¤¤ä¢¥¤òɽ¼¨¤¹¤ë
(tutcode-state-has-preedit? c)
;; ʸ»ú¿ô»ØÄê¸åÃÖ·¿¸ò¤¼½ñ¤ÊÑ´¹¤ÎºÆµ¢³Ø½¬¥¥ã¥ó¥»¥ë
@@ -5902,7 +5903,8 @@
(tutcode-update-preedit pc))
(else
(tutcode-proc-state-off pc key key-state)
- (if (or tutcode-show-pending-rk?
+ (if (or (and tutcode-show-pending-rk?
+ (pair? (rk-context-seq (tutcode-context-rk-context
pc))))
(tutcode-state-has-preedit? c)) ; ºÆµ¢³Ø½¬»þ
(tutcode-update-preedit pc))))
(if (or tutcode-use-stroke-help-window?