Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
9fec75c0
Commit
9fec75c0
authored
Apr 18, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix firefox '-' key mapping.
parent
d1616107
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
TODO
TODO
+0
-2
canvas.js
canvas.js
+3
-3
No files found.
TODO
View file @
9fec75c0
- Fix firefox key codes ('-', etc)
- Make packet sequence number optional based on WebSockets 'path'.
- Better status and error feedback.
...
...
canvas.js
View file @
9fec75c0
...
...
@@ -24,7 +24,6 @@ mouseUp: function (e) {
mouseMove
:
function
(
e
)
{
var
evt
=
e
.
event
||
window
.
event
;
//e.stop();
console
.
log
(
'mouse '
+
evt
.
which
+
'/'
+
evt
.
button
+
' up:'
+
(
evt
.
clientX
-
Canvas
.
c_x
)
+
","
+
(
evt
.
clientY
-
Canvas
.
c_y
));
},
...
...
@@ -164,7 +163,6 @@ copyImage: function(old_x, old_y, new_x, new_y, width, height) {
getKeysym
:
function
(
e
)
{
evt
=
e
.
event
||
window
.
event
;
var
keysym
;
//console.log(dirObj(e, null, 1));
/* Remap modifier and special keys */
switch
(
evt
.
keyCode
)
{
...
...
@@ -205,7 +203,9 @@ getKeysym: function(e) {
case
186
:
keysym
=
59
;
break
;
// ; (IE)
case
187
:
keysym
=
61
;
break
;
// = (IE)
case
188
:
keysym
=
44
;
break
;
// , (Mozilla, IE)
//case 109 : // - (Mozilla)
case
109
:
// - (Mozilla)
if
(
Browser
.
Engine
.
gecko
)
keysym
=
45
;
break
;
case
189
:
keysym
=
45
;
break
;
// - (IE)
case
190
:
keysym
=
46
;
break
;
// . (Mozilla, IE)
case
191
:
keysym
=
47
;
break
;
// / (Mozilla, IE)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment