Re: [spice-gtk 2/3] Send key release event for some keys in JP keyboard.

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

 



On 03/31/16 22:19, Frediano Ziglio-san wrote:
+        switch (key->hardware_keycode) {
+        case VK_KANJI:                  /* Alt + Zenkaku_Hankaku */
+        case VK_OEM_ATTN:               /* Eisu_toggle */
+        case VK_OEM_COPY:               /* Hiragana_Katakana */
+        case VK_OEM_BACKTAB:            /* Alt + Hiragana_Katakana */
+            no_key_release = TRUE;
+            break;

Unfortunately this is not exactly true. Some keys are just inverted,
some others depends on IME mode.
Sending always the release cause in some case to send 2 times the press/release
combination. This could cause some issues depending on guest settings.
Usually however this code produce multiple releases which are harmless.

Right. I added more comment lines to explain the problems.

_______________________________________________
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]