Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 139773d0 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Enable voice and language switch keys for keyboard layout tests

Change-Id: I19ee05e30d09eb13753b737961882e345591c1df
parent c41d261b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -68,15 +68,6 @@ public final class Arabic extends LayoutBase {
            return EMPTY_KEYS;
        }

        @Override
        public ExpectedKey[] getKeysLeftToSpacebar(final boolean isPhone) {
            if (isPhone) {
                // U+060C: "،" ARABIC COMMA
                return joinKeys(key("\u060C", SETTINGS_KEY));
            }
            return super.getKeysLeftToSpacebar(isPhone);
        }

        @Override
        public ExpectedKey[] getKeysRightToSpacebar(final boolean isPhone) {
            if (isPhone) {
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ public final class ArmenianPhonetic extends LayoutBase {
        } else {
            builder.addKeysOnTheRightOfRow(1, DELETE_KEY)
                    .addKeysOnTheRightOfRow(3, ENTER_KEY)
                    .addKeysOnTheLeftOfRow(5, customizer.getSymbolsKey(), SETTINGS_KEY)
                    .addKeysOnTheLeftOfRow(5,
                            customizer.getSymbolsKey(), key(SHORTCUT_KEY, SETTINGS_KEY))
                    .addKeysOnTheRightOfRow(5, EMOJI_KEY);
        }
        builder.addKeysOnTheLeftOfRow(4, (Object[])customizer.getLeftShiftKeys(isPhone))
+1 −10
Original line number Diff line number Diff line
@@ -66,15 +66,6 @@ public final class Farsi extends LayoutBase {
            return EMPTY_KEYS;
        }

        @Override
        public ExpectedKey[] getKeysLeftToSpacebar(final boolean isPhone) {
            if (isPhone) {
                // U+060C: "،" ARABIC COMMA
                return joinKeys(key("\u060C", SETTINGS_KEY));
            }
            return super.getKeysLeftToSpacebar(isPhone);
        }

        @Override
        public ExpectedKey[] getKeysRightToSpacebar(final boolean isPhone) {
            if (isPhone) {
@@ -91,7 +82,7 @@ public final class Farsi extends LayoutBase {

        @Override
        public ExpectedKey[] getSpaceKeys(final boolean isPhone) {
            return joinKeys(SPACE_KEY, key(ZWNJ_KEY, ZWJ_KEY));
            return joinKeys(LANGUAGE_SWITCH_KEY, SPACE_KEY, key(ZWNJ_KEY, ZWJ_KEY));
        }

        @Override
+2 −1
Original line number Diff line number Diff line
@@ -94,7 +94,8 @@ public final class Khmer extends LayoutBase {
        } else {
            builder.addKeysOnTheRightOfRow(1, DELETE_KEY)
                    .addKeysOnTheRightOfRow(3, ENTER_KEY)
                    .addKeysOnTheLeftOfRow(5, customizer.getSymbolsKey(), SETTINGS_KEY)
                    .addKeysOnTheLeftOfRow(5,
                            customizer.getSymbolsKey(), key(SHORTCUT_KEY, SETTINGS_KEY))
                    .addKeysOnTheRightOfRow(5, EMOJI_KEY);
        }
        builder.addKeysOnTheLeftOfRow(4, (Object[])customizer.getLeftShiftKeys(isPhone))
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ public final class Lao extends LayoutBase {
        } else {
            builder.addKeysOnTheRightOfRow(1, DELETE_KEY)
                    .addKeysOnTheRightOfRow(3, ENTER_KEY)
                    .addKeysOnTheLeftOfRow(5, customizer.getSymbolsKey(), SETTINGS_KEY)
                    .addKeysOnTheLeftOfRow(5,
                            customizer.getSymbolsKey(), key(SHORTCUT_KEY, SETTINGS_KEY))
                    .addKeysOnTheRightOfRow(5, EMOJI_KEY);
        }
        builder.addKeysOnTheLeftOfRow(4, (Object[])customizer.getLeftShiftKeys(isPhone))
Loading