Re: [spice-gtk v3 1/3] Send Zenkaku_Hankaku key in JP keyboard

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

 



I confirmed v3 works fine.

On 04/14/16 19:52, Frediano Ziglio-san wrote:
> From: Takao Fujiwara <tfujiwar@xxxxxxxxxx>
> 
> Zenkaku_Hankaku key has the different virtual-key codes between WM_KEYDOWN
> and WM_KEYUP and MapVirtualKey() cannot get the scancode from virtual-key
> code of WM_KEYDOWN (VK_DBE_DBCSCHAR) and spice-gtk didn't send the key
> press events and caused the desktop freeze with unlimited key release
> events.
> 
> The fix is to get the scancode from virtual-key code of WM_KEYUP
> (VK_DBE_SBCSCHAR) and Zenkaku_Hankaku key works fine.
> 
> Alt + Zenkaku_Hankaku key also has the different virtual-key code and
> MapVirtualKey() cannot get the scancode from the virtual-key and
> spice-gtk didn't send the key press events and Alt+Zenkaku_Hankaku
> could not be used.
> 
> The fix is to get the scancode from virtual-key code of Zenkaku_Hankaku key
> (VK_DBE_SBCSCHAR).
> 
> VK_CAPITAL, VK_DBE_ROMAN are also applied the similar fixes.
> ---
>   src/spice-widget.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
>   1 file changed, 46 insertions(+), 2 deletions(-)
> 
> Changes from v2:
> - do not use hooks or filter but just read layout
>    directly for every key.
> 

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]