Commit 984813b1 authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Adjust the default values of key-repeat options.

Also make "auto-hide-delay" type integer rather than double.
parent b6beeedc
......@@ -16,10 +16,10 @@
<summary>Hide keyboard automatically when focus is out</summary>
<description>If true, hide keyboard automatically when focus is out.</description>
<key name="auto-hide-delay" type="d">
<summary>Delay seconds before hiding keyboard</summary>
<description>Delay seconds before hiding keyboard. This is useful when focus listener is enabled.</description>
<key name="auto-hide-delay" type="i">
<summary>Delay before hiding keyboard</summary>
<description>Delay before hiding keyboard in milliseconds. This is useful when focus listener is enabled.</description>
<key type="b" name="repeat">
......@@ -27,12 +27,12 @@
<description>Generate key-press/release event repeatedly while a key is held down</description>
<key type="i" name="repeat-interval">
<summary>Key repeat interval</summary>
<description>Delay between repeats in milliseconds.</description>
<key type="i" name="repeat-delay">
<summary>Initial key repeat delay</summary>
<description>Initial key repeat delay in milliseconds.</description>
......@@ -623,10 +623,10 @@ focus_message_filter (GDBusConnection *connection,
eekboard_context_show_keyboard (client->context, NULL);
} else if (g_settings_get_boolean (client->settings, "auto-hide") &&
g_strcmp0 (member, "FocusOut") == 0) {
gdouble delay = g_settings_get_double (client->settings,
gint delay = g_settings_get_int (client->settings,
client->hide_keyboard_timeout_id =
g_timeout_add ((guint)(delay * 1000),
g_timeout_add (delay,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment