Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: src/IBusChewingEngine-keys.c

Issue 2436006: Add support for selecting candidates via mouseclick. (Closed) Base URL: ssh://git@chromiumos-git/ibus-chewing.git
Patch Set: Code Review Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IBusChewingEngine.gob ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef IBUS_1_1 1 #ifndef IBUS_1_1
2 gboolean ibus_chewing_engine_process_key_event_1_2(IBusEngine *engine, 2 gboolean ibus_chewing_engine_process_key_event_1_2(IBusEngine *engine,
3 guint keysym_ignore, guint keycode, guint modifiers){ 3 guint keysym_ignore, guint keycode, guint modifiers){
4 if (modifiers & IBUS_RELEASE_MASK){ 4 if (modifiers & IBUS_RELEASE_MASK){
5 /* Skip release event */ 5 /* Skip release event */
6 return TRUE; 6 return TRUE;
7 } 7 }
8 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine); 8 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine);
9 guint keysym=ibus_keymap_lookup_keysym (self->keymap_us,keycode,modifiers); 9 guint keysym=ibus_keymap_lookup_keysym (self->keymap_us,keycode,modifiers);
10 return ibus_chewing_engine_process_key_event(engine, keysym, modifiers); 10 return ibus_chewing_engine_process_key_event(engine, keysym, modifiers);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 192
193 }else{ 193 }else{
194 result=FALSE; 194 result=FALSE;
195 } 195 }
196 if (!result){ 196 if (!result){
197 return FALSE; 197 return FALSE;
198 } 198 }
199 return self_update(self); 199 return self_update(self);
200 } 200 }
201
202 void ibus_chewing_engine_candidate_clicked(IBusEngine *engine, guint index,
203 guint button, guint state) {
204 G_DEBUG_MSG(3,"[I3] cadidate_clicked(-, %u, %u, %u) ... proceed.", index, bu tton, state);
205 IBusChewingEngine *self=IBUS_CHEWING_ENGINE(engine);
206 self_handle_candidate_clicked(self, index, button, state);
207 }
OLDNEW
« no previous file with comments | « src/IBusChewingEngine.gob ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698