projects
/
platform
/
core
/
uifw
/
libhangul.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4aef0b
)
hangul_ic_backspace() 에서도 preedit_string과 commit_string을 초기화 함:
author
Choe Hwanjin
<choe.hwanjin@gmail.com>
Thu, 6 Nov 2008 14:44:48 +0000
(23:44 +0900)
committer
Choe Hwanjin
<choe.hwanjin@gmail.com>
Thu, 6 Nov 2008 14:44:48 +0000
(23:44 +0900)
libhangul의 사용자가 hangul_ic_backspace() 함수를 콜한 후에 preedit string과
commit string이 유효한지 확인하여 처리하도록 코딩할 수 있다.
그리고 모든 키 처리 함수를 호출한후 preedit string과 commit string을
확인할수 있도록 하기 위해서는 위 과정이 필요하다.
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@187
8f00fcd2
-89fc-0310-932e-
b01be5b65e01
hangul/hangulinputcontext.c
patch
|
blob
|
history
diff --git
a/hangul/hangulinputcontext.c
b/hangul/hangulinputcontext.c
index
2ed190e
..
8bf3242
100644
(file)
--- a/
hangul/hangulinputcontext.c
+++ b/
hangul/hangulinputcontext.c
@@
-907,6
+907,9
@@
hangul_ic_backspace(HangulInputContext *hic)
if (hic == NULL)
return false;
+ hic->preedit_string[0] = 0;
+ hic->commit_string[0] = 0;
+
ret = hangul_buffer_backspace(&hic->buffer);
if (ret)
hangul_ic_save_preedit_string(hic);