jalf
b073803180
Keyboard Handling [8/8]: Introduce substituteCodepoint() to replace code points which don't have a keysym with ones that do
...
For now, the only code points this is done for are {s, S, t, T} with comma below (used in Romanian),
which are replaced by {s, S, t, T} Cedilla.
2013-11-27 15:42:45 +01:00
jalf
52c90a3a59
Keyboard Handling [7/8]: Replace keysym table with optimized version
...
Regenerate the keysymdef table without -d.
This eliminates keysym names, which are only used for debugging, and shaves ~40kb off the file size
2013-11-27 15:42:45 +01:00
jalf
394408407c
Keyboard Handling [6/8]: Update everything to include the new keyboard handling scripts
2013-11-27 15:42:45 +01:00
jalf
121875621d
Keyboard Handling [5/8]: Update rfb.js to connect mouse events to keyboard handler
...
This allows the keyboard handler to check modifier key state much more frequently
Since some browsers never send keyup events for modifier keys, we have to
synchronize modifier state whenever we get a mouse or keyboard event
2013-11-27 15:42:42 +01:00
jalf
1feaa6e3e2
Keyboard Handling [4/8]: Update input.html to work with new keyboard handling
...
Plug new keyboard handling into input.js (which breaks everything else), and update input.html to work with this
2013-11-27 15:41:59 +01:00
jalf
0848cee6f9
Keyboard Handling [3/8]: Add unit tests for new keyboard handling
...
Relies on the libraries chai and mocha (available via npm from Node.JS).
Add anything installed via npm to the .gitignore file.
2013-11-27 15:41:54 +01:00
jalf
2ce7f5e30d
Keyboard Handling [2/8]: Core implementation of new keyboard handling
...
Add keyboard.js, containing the actual keyboard event parsing code.
2013-11-27 15:41:45 +01:00
jalf
3e60bb2ee4
Keyboard Handling [1/8]: Parse keysymdef.h to produce Unicode -> keysym mappings table
...
Add a node.js-based tool (utils/parse.js) to read keysymdef.h and produce a JavaScript file
mapping Unicode code points to keysyms.
Also add the generated table (include/keysymdef.js).
2013-11-27 15:41:39 +01:00
Peter Åstrand (astrand)
b66ffcddcf
Re-fix pull req #245 :
...
* Must declare port variable.
* Must look for https first, then http.
2013-04-25 09:07:09 +02:00
Joel Martin
e6500004de
Merge pull request #245 from wrouesnel/vnc-auto-fix
...
Detect port properly in vnc_auto.html when used on port 80 or 443.
2013-04-23 09:19:59 -07:00
Will Rouesnel
58873b3222
Use port in UI.initSetting in include/ui.js
...
Because apparently it is simple enough for me to forget to include in the previous commit.
2013-04-23 14:32:02 +10:00
Will Rouesnel
c42136d537
Add default port logic to include/ui.js
...
Correctly identifies the use of http/https and forces the value of port to 80 and 443
respectively, as in this situation window.location.port is blank.
This is patch includes the same changes as made in vnc_auto.html
2013-04-22 20:07:20 +10:00
Joel Martin
44ff863273
rfb.js: set FBU.bytes before waiting from RRE.
...
Also, in COPYRECT, set FBU.bytes to the number we know we will need.
2013-04-17 09:34:33 -05:00
Joel Martin
1e04775831
Merge pull request #249 from Medical-Insight/copy-rect-bytes
...
Set FBU.bytes to 1 in encHandlers.COPYRECT
2013-04-16 11:18:23 -07:00
Vagn Johansen
9f554fcdf7
Set FBU.bytes to 1 in encHandlers.COPYRECT
...
FBU.bytes must be set before return false to indicate that the FBU
header has been read. If not set then "if (FBU.bytes == 0) { ..}"
in framebufferUpdate will be entered and the copyrect header will
be interpreted as a new FBU leading to a "unsupported encoding"
disconnect error.
2013-04-16 19:17:50 +02:00
Joel Martin
7c1cd93744
Remove references to wsproxy.
...
Also, update nova-novncproxy to import websockify instead of wsproxy.
2013-04-15 12:22:34 -05:00
Will Rouesnel
e83b9e03eb
Detect port properly in vnc_auto.html when used on port 80 or 443.
...
Browsers (such as Chrome) don't report port numbers in window.location.port when
used on standard ports such as 80 and 443. This causes vnc_auto.html to not
automatically find the port as it should.
This simple change checks if window.location.port is blank, and sets port as
appropriate from the name of the protocol in use.
2013-04-13 18:45:56 +10:00
Joel Martin
7dc038efd9
Add gimite/web-socket-js submodule for DFSG compliance.
2013-04-12 08:21:33 -05:00
Joel Martin
cededc4d14
Merge pull request #244 from djipko/common_conf_to_oslo_conf
...
Import cfg from oslo in nova-novncproxy
2013-04-08 10:32:03 -07:00
Nikola Dipanov
de0f8773b1
Import cfg from oslo in nova-novncproxy
...
Upstram OpenStack Nova package has moved the config engine into a
separate package. Mirror that change in the novnc script.
2013-04-08 15:42:56 +02:00
Joel Martin
60d991774b
Merge pull request #241 from astrand/html-cleanup
...
Minimize differences between vnc.html and vnc_auto.html
2013-04-05 06:46:52 -07:00
Peter Åstrand (astrand)
33f5d3bd92
Sync more header meta stuff from vnc.html:
...
* UTF-8 charset defintition.
* Define IE=edge for X-UA-Compatible.
* Add Apple iOS Safari settings.
2013-04-05 09:30:10 +02:00
Peter Åstrand (astrand)
9f0d23de4d
Move over comment about URL connect parameters from vnc_auto.html.
2013-04-05 09:29:08 +02:00
Peter Åstrand (astrand)
b597bdd1ec
Fix typo:
...
names="apple-mobile-web-app-status-bar-style"
should be:
name="apple-mobile-web-app-status-bar-style"
2013-04-05 09:22:19 +02:00
Joel Martin
c2b1409a43
Merge pull request #239 from astrand/html-cleanup
...
Tweak order/whitespace/style to match vnc.html more closely.
2013-04-04 07:22:37 -07:00
Peter Åstrand (astrand)
e84101b3e7
Tweak order/whitespace/style to match vnc.html more closely. No
...
functional changes.
2013-04-03 16:22:21 +02:00
Joel Martin
3b2acc2258
Merge pull request #225 from Medical-Insight/crlf-to-lf
...
Consistent Unix line endings
2013-01-31 06:58:33 -08:00
jalf
301fc915a6
Converted to unix line endings
2013-01-31 11:24:04 +01:00
jalf
b1b342a97e
Capture mouse events and filter irrelevant ones
2013-01-30 13:17:50 +01:00
jalf
0d0f754aad
Listen for mouseup events from window as well as target element
...
Pressing an holding a mouse button and then moving the mouse out of the
canvas before releasing meant that onmouseup was never triggered.
2013-01-30 13:17:32 +01:00
jalf
8a147535de
Clamp mouseclick coordinates to target element bounds
2013-01-30 13:17:32 +01:00
Joel Martin
49d5cee91e
Merge pull request #220 from vaj/keyinput
...
Ctrl+'-' won't work on a US keyboad with the latest Firefox.
2012-12-23 21:09:16 -08:00
Hirokazu Takahashi
37a3081f05
Ctrl+'-' won't work on a US keyboad with Firefox.
...
Firefox 17 generates 173 as the keycode for the minus key.
2012-12-23 18:32:28 +09:00
Joel Martin
d55f5377bb
Merge pull request #216 from komawar/config-module
...
Changed the config module which includes CONF
2012-11-30 11:58:50 -08:00
Nikhil Komawar
902c6fb37f
Changed the config module which includes CONF
...
currently CONF was attempted of being imported from nova config.py
rather than openstack/common/cfg.py. this commit fixes that.
2012-11-30 11:50:57 -05:00
Joel Martin
705c54edb6
Sync with websockify.
...
Pull c33f0b52e7 from websockify.
- Fix for python2.4 with URL parsing.
- Set binaryType earlier in Opera 12.10 to avoid receiving a blob.
- Re-order client and target processing so that pending client data
has an opportunity to be sent when the target closes.
2012-11-14 12:28:22 -05:00
Joel Martin
361cde7c96
Merge pull request #214 from otherwiseguy/master
...
Update utils/nova-novncproxy to work with nova master branch
2012-11-08 15:12:24 -08:00
Terry Wilson
f167ea0ecc
Mirror FLAGS->CONF change in Nova
...
Nova recently removed parse_args from flags.py. This updates the
nova proxy to properly use CONF instead of FLAGS.
2012-11-08 17:49:12 -05:00
Joel Martin
3516bdf3fa
util/launch.sh: add --web option and try /usr/share/novnc
2012-11-01 11:35:35 -05:00
Joel Martin
51562999c7
util.js: script load sequential execution changes.
...
Related to issue: https://github.com/kanaka/noVNC/issues/205
Split out the function to load a single script to Util.load_script.
In order to get sequential load, when on IE set the script defer flag.
It is currently working on webkit and firefox but just in case also
set the script.async flag to make sure that scripts execute in the
order they are added. Scripts should still load in parallel.
2012-11-01 10:47:37 -05:00
Joel Martin
e7e6660272
include/playback.js: support binary (non-base64) data files.
...
Data files should now set the variable VNC_frame_encoding to either
"binary" or "base64". The python websockify recording mode adds this
automatically based on what is negotiated with the client being
recorded.
2012-10-26 18:08:00 -05:00
Joel Martin
49578da448
sync with websockify
...
Pull in websockify 1669139
2012-10-26 18:07:25 -05:00
Joel Martin
c95456c0e1
rfb.js: skip tight when true color is disabled.
...
Generally this means falling back to 8-bit colour mapped hextile which
is uses more bandwidth and is likely slower that tight with 24-bit
true color.
This is related to this query:
http://superuser.com/questions/484790/how-to-use-8-bit-mode-with-novnc
2012-10-23 16:21:22 -05:00
Joel Martin
73ee4fa7cc
util.js: fix dynamic script load on IE 9 (again).
...
Use a mechanism described here to serialize the execution of scripts
under IE: http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order
Basically, we set the src attribute but do not append the script to
the body/head until after readyState is "loaded". Unfortunately, Opera
uses readyState but in a different way (always "loaded" for both load
and execution).
This is related to (and hopefully fixes) these issues:
https://github.com/kanaka/noVNC/issues/194 ,
https://github.com/kanaka/noVNC/issues/205 ,
https://github.com/kanaka/noVNC/issues/208 .
2012-10-23 15:54:08 -05:00
Joel Martin
5514d29950
vnc.html: use standard HTML5 doctype.
...
The mobile doctype doesn't not seem to make any difference on iOS so
I'm dropping it and just going with the standard HTML5 version since
the wapforum mobile version may cause issues with IE 10.
2012-10-19 12:18:48 -05:00
Joel Martin
57430b8c12
ui.js: fix drag button so it can be toggled off.
2012-10-19 12:18:21 -05:00
Joel Martin
e881ce5a1b
Merge remote branch 'Medical-Insight/non-square-cursor-fix'
2012-10-18 17:44:13 -05:00
Joel Martin
8e2d749605
util.js: script load sequential execution changes.
...
Related to issue: https://github.com/kanaka/noVNC/issues/205
Split out the function to load a single script to Util.load_script.
In order to get sequential load, when on IE set the script defer flag.
It is currently working on webkit and firefox but just in case also
set the script.async flag to make sure that scripts execute in the
order they are added. Scripts should still load in parallel.
2012-10-18 16:13:00 -05:00
Joel Martin
60106f240a
Revert "supprt ALTGR key event"
...
This reverts commit 079504a6d2 .
2012-10-17 15:37:24 -05:00
Joel Martin
c527482ebf
Merge pull request #195 from moobyfr/keyboard-altgr
...
Keyboard altgr
2012-10-17 13:30:50 -07:00