To allow using the existing mechanism to override the default hotkeys from the cmdline. Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> --- client/application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/application.cpp b/client/application.cpp index d9da67f..8902642 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; -- 1.8.0.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel