Re: Announcing the first version of spice-html5

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

 



>> *blush*  Yes, sorry, the keyboard code is truly awful.  It's a matter of
>> translating web key codes into scan codes; I didn't find a good way to
>> do it, and just used a brute force hack. If you're at all a programmer,
>> it would be easy to extend the hack and fix the key codes for yourself;
>> that code is in utils.js.
> 
> No escape to get the scancode from the browser? have to wait for html6?

None that I found (which is not necessarily !== none <grin>).  All I
could find were faqs that said key codes in general are a mess and not
standardized (they apparently vary by browser), and certainly nothing to
go from key codes to scan codes.

My thought was to later explore some of the third party libraries that
try to mitigate these issues, and see if riffing off one of those leads
to a slightly less ugly solution.

There are also some tricky issues around keyboard handling I didn't even
begin to think about (e.g. tab, escape, alt-tab, and so on).

Cheers,

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