Commit Graph

26 Commits (df9ca2e0ce839c53699fd6b9e12d3a84e8ac013b)

Author SHA1 Message Date
Quentin Dreyer df9ca2e0ce chore: sync with W3C documentation
https://www.w3.org/TR/uievents-key/
4 years ago
Pierre Ossman 4fda2526f4 Send combination keysyms for some Japanese keys
Windows doesn't give us stable symbols for a bunch of Japanese IM keys,
instead alternating between two symbols. This state is not synchronised
with the IM running on the remote server so to have stable behaviour we
have to collapse these multiple symbols in to a single keysym.
4 years ago
Pierre Ossman 102257cb32 Fix typo for ZenkakuHankaku key 4 years ago
Pierre Ossman 77509c1e56 Use toggle keysym for Eisu key
This matches how the key behaves on a Linux system.
4 years ago
Pierre Ossman 9e0a5d26af Update keycode mappings to latest version
This update fixes Korean layouts.
4 years ago
Pierre Ossman 8b8201fd73 Remove Firefox Alt workaround
The bug got fixed way back in Firefox 63, and it is also misbehaving
with modern Firefox as they no longer consider AltGr an Alt-key.
4 years ago
Samuel Mannehed 19c473f792 Properly limit mouse moves to once every 17 ms
Previous attempt in c958269 had a number of issues, this is a full
rewrite, complete with improved unit tests.

Fixes github issue #1402
4 years ago
Samuel Mannehed d420aa6413 Shorten rows to max 80 chars in mouse.js 4 years ago
Samuel Mannehed 93e42772bc Fix wording in comment 4 years ago
Uwe Klatt 9098478faf Limit mouse move events to one every 17 ms 4 years ago
Alex Tanskanen 15c74e7dc9 Fix missing caps lock events on iOS
Caps Lock on iOS only trigged key release or key press events.
When it's clicked it would only send keydown, and next time
it would only send keyup and so on. It should send both a key press
and a key release.

Also added the unit tests for macOS since those were missing.

Co-Authored-By: Alex Tanskanen <aleta@cendio.se>
4 years ago
Alex Tanskanen b5f1a00282 Add "macOS shuffle" to iOS as well
Since iOS functions like macOS with regards to Alt behaving like AltGr,
we need the same workaround on iOS as well.
4 years ago
Pierre Ossman 740a8217ab Handle missing Shift events on Windows
This is a bug in the OS that leaks through to the browsers. We need
to fake a Shift release here to avoid Shift getting stuck in the remote
session.
4 years ago
Pierre Ossman 796de9653f Send NumLock on macOS, even though the key is Clear
There is no obvious choice what works best here, but this is what
TigerVNC has been doing for years without complaints. Let's follow
them until we get reports that this doesn't work well.
4 years ago
Pierre Ossman 6916c83b48 Fix typo for MailSend key 4 years ago
Pierre Ossman d10d7167f6 Update to latest UI Events key specification 4 years ago
Pierre Ossman a8dc933701 Fix AltGr for a few more keys in IE and Edge
Some keys apparently send 'Unidentified' rather than an unshifted value.
Make sure those are also handled. Examples are \ and | on a Swedish
keyboard.
4 years ago
Pierre Ossman 62fca18cb9 Revert iOS keyup workaround
It seems Apple has fixed their buggy keyup events, so remove the
workaround and allow keys to be kept pressed again.

This is a revert of 9e99ce126ca8f6f350fa015c0e58d35103c62f7e.
4 years ago
Pierre Ossman dc3ddc8efc Handle broken numpad delete key in Chrome 4 years ago
Pierre Ossman e497b53d09 Explain why Clear maps to KP_Begin 4 years ago
Pierre Ossman 7dc51fa7a5 Try to handle Meta key properly
The standards have unfortunatly caused some confusion between the Windows
key and the original Meta key. Try to handle the common case sanely at least.
4 years ago
Samuel Mannehed 0dcb896920 Update copyright to 2019 for modified files 4 years ago
Samuel Mannehed 6342a117ff Clarify comments for broken alt in FF on Windows 4 years ago
Jesper Alf Dam d4747a8c80 Avoid recursion in Alt check on Firefox
The Firefox workaround which checks for missing Alt key events may
synthesise new KeyboardEvents. On these events, checkAlt should not be
recursively triggered. Otherwise, we get "too much recursion" errors
whenever the Alt key is pressed.
4 years ago
Juanjo Diaz 3043216b63 Remove intermediate variable from mouse 4 years ago
matt 408c005d3e Initial commit 5 years ago