-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect mouse click to commit Hangul preedit
If preedit text is not committed with the mouse click, preedit text is moved to the new cursor position in Hangul typing. Since set_cursor_location() is received before the reset() signal is sent to ibus-daemon and commit_text() signal is received from ibus-daemon, UpdatePreeditTextWithMode D-Bus method is newly added and now ibus clients commit the preedit. BUG=ibus#1980
- Loading branch information
Showing
6 changed files
with
338 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
/* vim:set et sts=4: */ | ||
/* ibus - The Input Bus | ||
* Copyright (C) 2008-2014 Peng Huang <[email protected]> | ||
* Copyright (C) 2017 Takao Fujiwara <[email protected]> | ||
* Copyright (C) 2008-2014 Red Hat, Inc. | ||
* Copyright (C) 2017-2018 Takao Fujiwara <[email protected]> | ||
* Copyright (C) 2008-2018 Red Hat, Inc. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -377,5 +377,20 @@ void bus_input_context_update_lookup_table | |
void bus_input_context_panel_extension_received | ||
(BusInputContext *context, | ||
IBusExtensionEvent *event); | ||
|
||
/** | ||
* bus_input_context_clear_preedit_text: | ||
* | ||
* Clear context->preedit_text. If the preedit mode is | ||
* IBUS_ENGINE_PREEDIT_COMMIT and with_signal is %TRUE, commit it before | ||
* clearing. | ||
* If with_signal is %FALSE, this just clears the preedit coditions | ||
* and the actual preedit is handled in ibus clients. | ||
*/ | ||
void bus_input_context_clear_preedit_text | ||
(BusInputContext *context, | ||
gboolean | ||
with_signal); | ||
|
||
G_END_DECLS | ||
#endif |
Oops, something went wrong.