# Enable IME
SEND_KEY	ON

# Switch to 12keys-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD	TOGGLE_FLICK_TO_HIRAGANA	SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_COMPOSITION_MODE	HIRAGANA

RESET_CONTEXT
SEND_KEYS	1
EXPECT_PREEDIT	あ
SEND_KEYS	1
EXPECT_PREEDIT	い
SEND_KEYS	d
EXPECT_PREEDIT	いし

RESET_CONTEXT

# Set to number keyboard layout.
UPDATE_MOBILE_KEYBOARD	TOGGLE_FLICK_TO_HALFWIDTHASCII	COMMIT
SWITCH_COMPOSITION_MODE	HALF_ASCII

# Type "abc"
SEND_KEYS	abc
EXPECT_PREEDIT	abc


RESET_CONTEXT

# Qwerty alphabet
UPDATE_MOBILE_KEYBOARD	QWERTY_MOBILE_TO_HALFWIDTHASCII	SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_COMPOSITION_MODE	HALF_ASCII
SEND_KEYS	A
EXPECT_PREEDIT	A

RESET_CONTEXT

# Switch to flick-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD	FLICK_TO_HIRAGANA	SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_COMPOSITION_MODE	HIRAGANA

SEND_KEYS	87
EXPECT_PREEDIT	やま

RESET_CONTEXT

# Switch to flick-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD	QWERTY_MOBILE_TO_HIRAGANA	SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_COMPOSITION_MODE	HIRAGANA

SEND_KEYS	sa
EXPECT_PREEDIT	さ

RESET_CONTEXT

# Switch to flick-hiragana keyboard layout.
UPDATE_MOBILE_KEYBOARD	QWERTY_MOBILE_TO_HALFWIDTHASCII	SPACE_OR_CONVERT_KEEPING_COMPOSITION
SWITCH_COMPOSITION_MODE	HALF_ASCII

SEND_KEYS	mo
EXPECT_PREEDIT	mo
