X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Finput.h;h=a08dcbc82d3ea3d132f81d3a51f160b6fbd200d7;hb=45e5ec16068aec42d4547ee5cb1871a63c6ee195;hp=0ba188772543084f9947158d43f11214212e4cd2;hpb=bb539a68c7827315c17accd60275f160ac070ef5;p=m17n%2Fm17n-lib.git diff --git a/src/input.h b/src/input.h index 0ba1887..a08dcbc 100644 --- a/src/input.h +++ b/src/input.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the m17n library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 02111-1307, USA. */ #ifndef _M17N_INPUT_H_ @@ -65,6 +65,9 @@ typedef struct /** Index of the key not yet handled. */ int key_head; + /** Index of the key at the time of committing. */ + int commit_key_head; + /** Saved M-text when entered in the current state. */ MText *preedit_saved; @@ -77,6 +80,8 @@ typedef struct /** List of variables. */ MPlist *vars; + MPlist *vars_saved; + MText *preceding_text, *following_text; int key_unhandled; @@ -94,7 +99,6 @@ typedef struct #define MINPUT_KEY_SUPER_MODIFIER (1 << 4) #define MINPUT_KEY_HYPER_MODIFIER (1 << 5) -extern int minput__callback (MInputContext *ic, MSymbol command); extern MSymbol minput__char_to_key (int c); #endif /* not _M17N_INPUT_H_ */