1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<PreferenceScreen
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:settings="http://schemas.android.com/apk/res-auto"
19    android:title="@string/physical_keyboard_title">
20    <!-- Additional preference screens are inserted here programmatically
21         with low order values to set the key map of each attached keyboard. -->
22    <PreferenceCategory
23        android:key="keyboard_options_category"
24        android:title="@string/keyboard_options_category">
25        <Preference
26            android:key="keyboard_shortcuts_helper"
27            android:title="@string/keyboard_shortcuts_helper"
28            android:summary="@string/keyboard_shortcuts_helper_summary" />
29
30        <Preference
31            android:key="modifier_keys_settings"
32            android:title="@string/modifier_keys_settings"
33            android:summary="@string/modifier_keys_settings_summary"
34            android:fragment="com.android.settings.inputmethod.ModifierKeysSettings" />
35
36        <com.android.settingslib.PrimarySwitchPreference
37            android:key="physical_keyboard_repeat_keys"
38            android:title="@string/keyboard_repeat_keys_title"
39            android:summary="@string/keyboard_repeat_keys_summary"
40            android:defaultValue="false"
41            android:fragment="com.android.settings.inputmethod.KeyboardRepeatKeysMainFragment"
42            settings:controller="com.android.settings.inputmethod.KeyboardRepeatKeysController" />
43
44        <Preference
45            android:key="physical_keyboard_a11y"
46            android:title="@string/keyboard_a11y_settings"
47            android:summary="@string/keyboard_a11y_settings_summary"
48            android:fragment="com.android.settings.inputmethod.PhysicalKeyboardA11yFragment" />
49    </PreferenceCategory>
50
51    <PreferenceCategory
52        android:key="keyboard_a11y_category"
53        android:title="@string/keyboard_a11y_category">
54
55        <SwitchPreferenceCompat
56            android:key="accessibility_sticky_keys"
57            android:title="@string/sticky_keys"
58            android:summary="@string/sticky_keys_summary"
59            android:defaultValue="false" />
60
61        <SwitchPreferenceCompat
62            android:key="accessibility_bounce_keys"
63            android:title="@string/bounce_keys"
64            android:defaultValue="false" />
65
66        <SwitchPreferenceCompat
67            android:key="accessibility_slow_keys"
68            android:title="@string/slow_keys"
69            android:defaultValue="false" />
70
71        <SwitchPreferenceCompat
72            android:key="accessibility_mouse_keys"
73            android:title="@string/mouse_keys"
74            android:summary="@string/mouse_keys_summary"
75            android:defaultValue="false" />
76
77    </PreferenceCategory>
78</PreferenceScreen>
79