From d95a636683bbe71a1dda7058dd3809953e51498a Mon Sep 17 00:00:00 2001 From: cchance Date: Mon, 23 Apr 2007 00:30:36 +0000 Subject: [PATCH] - Fixed bz#237233: Up arrow on candidate list doesn't work. --- libchewing-0.3.0-7.bz237233.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libchewing-0.3.0-7.bz237233.patch diff --git a/libchewing-0.3.0-7.bz237233.patch b/libchewing-0.3.0-7.bz237233.patch new file mode 100644 index 0000000..21d67d5 --- /dev/null +++ b/libchewing-0.3.0-7.bz237233.patch @@ -0,0 +1,30 @@ +--- libchewing-0.3.0/src/chewingio.c.orig 2007-04-20 17:05:06.000000000 +1000 ++++ libchewing-0.3.0/src/chewingio.c 2007-04-20 17:01:46.000000000 +1000 +@@ -567,7 +567,9 @@ + { + ChewingData *pgdata = ctx->data; + ChewingOutput *pgo = ctx->output; +- int keystrokeRtn = KEYSTROKE_ABSORB; ++ int toSelect = 0; ++ int keystrokeRtn = KEYSTROKE_ABSORB; ++ int key_buf_cursor; + + CheckAndResetRange( pgdata ); + +@@ -575,8 +577,14 @@ + keystrokeRtn = KEYSTROKE_IGNORE; + } + +- if ( pgdata->bSelect ) +- ChoicePrevAvail( pgdata ); ++ key_buf_cursor = pgdata->chiSymbolCursor; ++ if ( pgdata->chiSymbolCursor == pgdata->chiSymbolBufLen ) ++ key_buf_cursor--; ++ ++ if ( ! pgdata->symbolKeyBuf[ key_buf_cursor ] ) { ++ /* Close Symbol Choice List */ ++ chewing_handle_Esc(ctx); ++ } + + MakeOutputWithRtn( pgo, pgdata, keystrokeRtn ); + return 0;