mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
spice-client: Add --hotkeys cmdline option
To allow using the existing mechanism to override the default hotkeys from the cmdline. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
07ee267455
commit
bc3f0d463e
@ -2265,6 +2265,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
|
||||
SPICE_OPT_DISABLE_DISPLAY_EFFECTS,
|
||||
SPICE_OPT_CONTROLLER,
|
||||
SPICE_OPT_TITLE,
|
||||
SPICE_OPT_HOTKEYS,
|
||||
#ifdef USE_SMARTCARD
|
||||
SPICE_OPT_SMARTCARD,
|
||||
SPICE_OPT_NOSMARTCARD,
|
||||
@ -2335,6 +2336,9 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
|
||||
parser.add(SPICE_OPT_CONTROLLER, "controller", "enable external controller");
|
||||
|
||||
parser.add(SPICE_OPT_TITLE, "title", "set window title", "title", true, 't');
|
||||
parser.add(SPICE_OPT_HOTKEYS, "hotkeys", "Set hotkey keybindings",
|
||||
"toggle-fullscreen=shift+f11,release-cursor=shift+f12,etc.",
|
||||
true);
|
||||
|
||||
#ifdef USE_SMARTCARD
|
||||
parser.add(SPICE_OPT_SMARTCARD, "smartcard", "enable smartcard channel");
|
||||
@ -2460,6 +2464,9 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
|
||||
case SPICE_OPT_TITLE:
|
||||
set_title(val);
|
||||
break;
|
||||
case SPICE_OPT_HOTKEYS:
|
||||
set_hotkeys(val);
|
||||
break;
|
||||
#ifdef USE_SMARTCARD
|
||||
case SPICE_OPT_SMARTCARD:
|
||||
_smartcard_options->enable= true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user