Re: [PATCH 1/2][Spice-HTML5][Take3] added sendCtrlAltDel method.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK series, and pushed - thanks!

Cheers,

Jeremy

On 03/18/2013 09:40 AM, Amos Benari wrote:
> ---
>  inputs.js |   20 ++++++++++++++++++++
>  1 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/inputs.js b/inputs.js
> index 4d3b28f..1131d09 100644
> --- a/inputs.js
> +++ b/inputs.js
> @@ -175,6 +175,26 @@ function handle_keyup(e)
>      e.preventDefault();
>  }
>  
> +function sendCtrlAltDel()
> +{
> +    if (sc && sc.inputs && sc.inputs.state === "ready"){
> +        var key = new SpiceMsgcKeyDown();
> +        var msg = new SpiceMiniData();
> +
> +        update_modifier(true, KEY_LCtrl, sc);
> +        update_modifier(true, KEY_Alt, sc);
> +
> +        key.code = KEY_KP_Decimal;
> +        msg.build_msg(SPICE_MSGC_INPUTS_KEY_DOWN, key);
> +        sc.inputs.send_msg(msg);
> +        msg.build_msg(SPICE_MSGC_INPUTS_KEY_UP, key);
> +        sc.inputs.send_msg(msg);
> +
> +        if(Ctrl_state == false) update_modifier(false, KEY_LCtrl, sc);
> +        if(Alt_state == false) update_modifier(false, KEY_Alt, sc);
> +    }
> +}
> +
>  function update_modifier(state, code, sc)
>  {
>      var msg = new SpiceMiniData();

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]