mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 18:38:12 +00:00
[client] ui: add input:helpMenuDelay option
This option controls the time period (in ms) after which the help menu appears when holding down the escape key. After this time period, capture mode is no longer toggled. This fixes #527.
This commit is contained in:
@@ -352,6 +352,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false
|
||||
},
|
||||
{
|
||||
.module = "input",
|
||||
.name = "helpMenuDelay",
|
||||
.description = "Show help menu after holding down the escape key for this many milliseconds",
|
||||
.type = OPTION_TYPE_INT,
|
||||
.value.x_int = 200
|
||||
},
|
||||
|
||||
// spice options
|
||||
{
|
||||
@@ -547,6 +554,8 @@ bool config_load(int argc, char * argv[])
|
||||
g_params.autoCapture = option_get_bool("input", "autoCapture" );
|
||||
g_params.captureInputOnly = option_get_bool("input", "captureOnly" );
|
||||
|
||||
g_params.helpMenuDelayUs = option_get_int("input", "helpMenuDelay") * (uint64_t) 1000;
|
||||
|
||||
g_params.minimizeOnFocusLoss = option_get_bool("win", "minimizeOnFocusLoss");
|
||||
|
||||
if (option_get_bool("spice", "enable"))
|
||||
|
Reference in New Issue
Block a user