mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
begin of event management
This commit is contained in:
parent
7321f3c08e
commit
7c9c570fb2
1 changed files with 25 additions and 0 deletions
25
data/scripts/Events.js
Normal file
25
data/scripts/Events.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
var Event = function() {
|
||||
}
|
||||
|
||||
var KeyEvent = function() {
|
||||
}
|
||||
KeyEvent.SpecialKeys = {
|
||||
non : 0,
|
||||
up : 1,
|
||||
down : 2,
|
||||
left : 3,
|
||||
right : 4,
|
||||
esc : 5,
|
||||
enter : 6,
|
||||
backspace: 7,
|
||||
del : 8
|
||||
};
|
||||
KeyEvent.prototype = new Event();
|
||||
KeyEvent.prototype.char = "";
|
||||
KeyEvent.prototype.specialKey = KeyEvent.SpecialKeys.non;
|
||||
KeyEvent.prototype.modifier = {
|
||||
ctrl : false,
|
||||
meta : false,
|
||||
alt : false,
|
||||
altgr: false
|
||||
}
|
Loading…
Reference in a new issue