summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-12-18 11:51:49 +0100
committerHans de Goede <hdegoede@redhat.com>2012-12-19 15:07:09 +0100
commitbc3f0d463ea85af5dd953776d8a23ba9fe548230 (patch)
tree40eb29d9e654c678865a3a53187b8e45e34000f4 /client
parent07ee2674558bfcda550321bae5c1c0ea27869527 (diff)
downloadspice-bc3f0d463ea85af5dd953776d8a23ba9fe548230.tar.gz
spice-bc3f0d463ea85af5dd953776d8a23ba9fe548230.tar.xz
spice-bc3f0d463ea85af5dd953776d8a23ba9fe548230.zip
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>
Diffstat (limited to 'client')
-rw-r--r--client/application.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp
index d9da67f5..89026429 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -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;