Adjust the default values of key-repeat options.
Also make "auto-hide-delay" type integer rather than double.
This commit is contained in:
@ -16,10 +16,10 @@
|
|||||||
<summary>Hide keyboard automatically when focus is out</summary>
|
<summary>Hide keyboard automatically when focus is out</summary>
|
||||||
<description>If true, hide keyboard automatically when focus is out.</description>
|
<description>If true, hide keyboard automatically when focus is out.</description>
|
||||||
</key>
|
</key>
|
||||||
<key name="auto-hide-delay" type="d">
|
<key name="auto-hide-delay" type="i">
|
||||||
<default>0.5</default>
|
<default>500</default>
|
||||||
<summary>Delay seconds before hiding keyboard</summary>
|
<summary>Delay before hiding keyboard</summary>
|
||||||
<description>Delay seconds before hiding keyboard. This is useful when focus listener is enabled.</description>
|
<description>Delay before hiding keyboard in milliseconds. This is useful when focus listener is enabled.</description>
|
||||||
</key>
|
</key>
|
||||||
<key type="b" name="repeat">
|
<key type="b" name="repeat">
|
||||||
<default>true</default>
|
<default>true</default>
|
||||||
@ -27,12 +27,12 @@
|
|||||||
<description>Generate key-press/release event repeatedly while a key is held down</description>
|
<description>Generate key-press/release event repeatedly while a key is held down</description>
|
||||||
</key>
|
</key>
|
||||||
<key type="i" name="repeat-interval">
|
<key type="i" name="repeat-interval">
|
||||||
<default>30</default>
|
<default>100</default>
|
||||||
<summary>Key repeat interval</summary>
|
<summary>Key repeat interval</summary>
|
||||||
<description>Delay between repeats in milliseconds.</description>
|
<description>Delay between repeats in milliseconds.</description>
|
||||||
</key>
|
</key>
|
||||||
<key type="i" name="repeat-delay">
|
<key type="i" name="repeat-delay">
|
||||||
<default>500</default>
|
<default>1000</default>
|
||||||
<summary>Initial key repeat delay</summary>
|
<summary>Initial key repeat delay</summary>
|
||||||
<description>Initial key repeat delay in milliseconds.</description>
|
<description>Initial key repeat delay in milliseconds.</description>
|
||||||
</key>
|
</key>
|
||||||
|
|||||||
@ -623,10 +623,10 @@ focus_message_filter (GDBusConnection *connection,
|
|||||||
eekboard_context_show_keyboard (client->context, NULL);
|
eekboard_context_show_keyboard (client->context, NULL);
|
||||||
} else if (g_settings_get_boolean (client->settings, "auto-hide") &&
|
} else if (g_settings_get_boolean (client->settings, "auto-hide") &&
|
||||||
g_strcmp0 (member, "FocusOut") == 0) {
|
g_strcmp0 (member, "FocusOut") == 0) {
|
||||||
gdouble delay = g_settings_get_double (client->settings,
|
gint delay = g_settings_get_int (client->settings,
|
||||||
"auto-hide-delay");
|
"auto-hide-delay");
|
||||||
client->hide_keyboard_timeout_id =
|
client->hide_keyboard_timeout_id =
|
||||||
g_timeout_add ((guint)(delay * 1000),
|
g_timeout_add (delay,
|
||||||
(GSourceFunc)on_hide_keyboard_timeout,
|
(GSourceFunc)on_hide_keyboard_timeout,
|
||||||
client);
|
client);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user