Samuel Mannehed
91e41150f0
Don't translate unexpected errors
2016-10-28 15:41:00 +02:00
Samuel Mannehed
e848790194
Replace tab with spaces
2016-10-28 15:23:51 +02:00
Samuel Mannehed
f55e041908
Add newlines at the end of the translation files
2016-10-28 14:37:40 +02:00
Samuel Mannehed
a93cda3a36
Move app-specific location of language files
...
The core directory should only contain core API code that isn't
specific to an application.
2016-10-28 14:30:14 +02:00
Samuel Mannehed
e3ded092e2
Merge pull request #701 from LoekJanssen/master
...
Localization support added for messages
2016-10-28 13:41:48 +02:00
Loek Janssen
5af39a878a
Added localization to statusbar
2016-10-28 12:40:28 +02:00
Samuel Mannehed
b1358a1f2e
Always disable forced touch gestures
...
Don't only disable these for the canvas, disable for the entire page.
There were issues where the control bar handle couldn't be moved on
IE and Edge on Microsoft Surface devices due to these "touch-actions".
2016-10-26 15:43:43 +02:00
Pierre Ossman
7632c576f0
Don't grab input when running performance tests
2016-10-25 16:17:07 +02:00
Pierre Ossman
f9e26cdb32
Fix performance tests to follow new state API
2016-10-24 17:41:20 +02:00
Samuel Mannehed
ab251ad9ea
Merge branch 'CendioOssman-delay' into master
...
Closes #668
2016-10-24 14:43:28 +02:00
Pierre Ossman
d9ca5e5b6b
Don't allow more than one pending update
2016-10-24 14:42:45 +02:00
Pierre Ossman
bb6965f2e6
Wait for proper image load event
...
There is a specific event for when an image has finished loading,
so trigger on that rather than polling. The polling interval of
requestAnimationFrame() can also be very large.
2016-10-24 14:42:13 +02:00
Pierre Ossman
1578fa68ac
Hide image handling in display object
...
The callers don't need to concern themselves with how images are
rendered, so hide the details behind the API. This also avoids
exposing the render queue.
2016-10-24 14:42:13 +02:00
Pierre Ossman
9535539bb2
Process entire WebSocket message at once
...
setTimeout() causes too much delay to be useful. Also, we
already handle all rects in a message at once, so this shouldn't
be too much of a change.
2016-10-24 14:42:08 +02:00
Samuel Mannehed
2e5cae1b23
Update comment for screenSize()
...
The explanation was outdated.
2016-10-24 14:26:53 +02:00
Samuel Mannehed
1a15f22905
Remove unnecessary anonymous function
...
addEventListener can handle multiple assigned events, no need for a
wrapping function.
2016-10-24 14:08:53 +02:00
Samuel Mannehed
4770b0c311
Typo fix for last commit
...
Commit 7d20158b4b
contained a typo
2016-10-24 13:59:35 +02:00
Samuel Mannehed
7d20158b4b
Add missing log output for UI-specific errors
...
Some UI errors and one warning didn't write to the log. We want all
errors to be logged.
2016-10-24 13:36:05 +02:00
Samuel Mannehed
daca5b1727
Reformat lines to avoid line-breaks
2016-10-24 13:35:06 +02:00
Samuel Mannehed
9b3d363d07
Merge pull request #686 from CendioOssman/favicon
...
Clean up page icons ("favicon")
2016-10-24 12:09:58 +02:00
Solly Ross
0f80564aa1
Merge pull request #696 from CendioOssman/wheel
...
Support standard mouse wheel event
2016-10-21 22:56:49 -04:00
Pierre Ossman
ffcadf9507
Better method to keep focus on virtual keyboard
...
This prevents the focus being lost rather than trying to restore it
at various places.
2016-10-21 16:27:43 +02:00
Pierre Ossman
ebb9086ae8
Support standard mouse wheel event
...
Mouse wheel event handling has now been standardised and has broad
support. Use this event rather than the older, non-standard ones.
At the same time fix up support for horisontal mouse wheel events.
2016-10-21 16:04:23 +02:00
Samuel Mannehed
a2495799af
Merge pull request #677 from CendioOssman/perf
...
Support older base64 recordings
2016-10-20 12:47:21 +02:00
Samuel Mannehed
c7f2f11416
Merge branch 'asadpanda-patch1' into master
...
Closes #654
2016-10-20 01:14:57 +02:00
Asad Saeed
7c1b2bac90
Add Meta Key mapping to xtscancodes.js
...
OSLeft/OSRight have been renamed to MetaLeft/MetaRight respectively.
This change will allow the Super/Windows key to be used under the qemu
rfb extension under Chrome and updated browsers.
https://github.com/w3c/uievents-code/issues/7
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
2016-10-20 01:13:32 +02:00
Samuel Mannehed
ac33960368
Merge pull request #649 from kanaka/dontgrabinviewonly
...
Fix view only
2016-10-20 01:04:14 +02:00
Samuel Mannehed
b0f7466ad4
Merge pull request #687 from CendioOssman/info
...
Improve info and error icons
2016-10-20 01:02:55 +02:00
Samuel Mannehed
795719ec3d
Merge pull request #619 from zarmhast/touchmouse
...
Fix for touchscreen devices that also have a mouse.
2016-10-20 00:47:12 +02:00
zarmhast
4b20f2364c
Fix for touchscreen devices that also have a mouse.
2016-10-20 00:44:25 +02:00
Samuel Mannehed
5826ab6f6a
Merge pull request #650 from kanaka/touchdetect
...
New way of detecting touch
2016-10-20 00:18:32 +02:00
Samuel Mannehed
d6cb04aa6b
Disable forced touch gestures on IE and Edge
...
Fixes issue discussed in #613
2016-10-20 00:13:29 +02:00
Samuel Mannehed
8473635a09
Fix typo that caused clipping by default on IE
...
Typo from commit a6357e8276
2016-10-19 15:33:06 +02:00
Samuel Mannehed
f75e4d3caa
Add safety check in code for moving the handle
...
An element that has 'display: none' has a height of zero, and the logic
for the handle assumed that this was never the case. This could cause
the handle to end up at the wrong coordinates.
2016-10-18 13:32:00 +02:00
Samuel Mannehed
59cd99bc38
Move the handle properly when page is scrolled
...
The coordinates used to calculate the position for the toolbar handle
wrongly took page-offset into account. Util.getPosition was being used
for this. Thus, when page was scrolled, this caused the handle to be
offset when it was being moved. Use getBoundingClientRect instead.
2016-10-18 13:26:17 +02:00
Pierre Ossman
0b96eddf56
Don't send Unicode to RFB.sendKey()
...
The argument must be a Keysym, not a Unicode codepoint.
2016-10-15 14:58:59 +02:00
Pierre Ossman
115eedf69c
Use Unicode keysym range as fallback
...
Not all Unicode codepoints have an equivalent named Keysym. But
there is a range in the Keysym namespace that can be used to map
any codepoint to.
2016-10-15 14:58:55 +02:00
Pierre Ossman
171086bc1d
Improve info and error icons
...
Give them a solid background to make them more easily identifiable
as icons, rather than text or some other more inline element.
2016-10-14 16:10:32 +02:00
Pierre Ossman
1351544e9f
Remove iOS startup image
...
Apple seems to have removed this feature from iOS 9.
2016-10-14 15:46:08 +02:00
Pierre Ossman
2b4e6ed523
Clean up page icon ("favicon") handling
...
Makes sure we use standardised formats and references, and makes sure
we have all the sizes we might need.
2016-10-14 13:24:35 +02:00
Pierre Ossman
4dc8953658
Use correct terminology in RFB.sendKey()
...
The keyboard handling is complex enough without using the incorrect
terms for things.
2016-10-14 08:37:48 +02:00
samhed
bea2b3fdfc
New way of detecting touch
...
Moves detection to Util and fixes so that touch is properly detected on
MS Surface and touch emulation in Chrome.
2016-10-14 02:41:06 +02:00
Samuel Mannehed
eef91bf9e3
Hide input related buttons in view only
2016-10-14 01:46:55 +02:00
Samuel Mannehed
ceb847b0e3
Don't modify mouse or keyboard in view_only mode
...
The UI previously didn't respect view_only in a number of cases.
2016-10-14 01:46:55 +02:00
Samuel Mannehed
301dc0e20b
Add logging when creation of RFB fails
2016-10-14 01:46:55 +02:00
Samuel Mannehed
7ae53db9cd
Don't request a new desktop size in view_only
2016-10-14 01:46:55 +02:00
Samuel Mannehed
81bd2d6682
Don't grab keyboard or mouse in view-only mode
...
Fixes #644 .
2016-10-14 01:46:14 +02:00
Pierre Ossman
267d1edfb6
Remove unused startup screen image
2016-10-13 16:58:27 +02:00
Samuel Mannehed
da346c3b21
Remove redeclaration of a variable
2016-10-13 14:57:37 +02:00
Pierre Ossman
d951b40956
Support older base64 recordings
2016-10-05 10:20:17 +02:00