-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.htm
35 lines (32 loc) · 1000 Bytes
/
demo.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="mmapkey.js" type="text/javascript"></script>
<script>
var mMapKey_Params = [
{
keycode: ["1"],
repeat : 2,
callback : function(){
alert("executed");
}
},
{
keycode: ["ctrl+a"],
multiple: 1,
callback : function(){
alert("executed");
}
}
]
$(document).ready(function(){
new mMapKey().init(mMapKey_Params);
});
</script>
</head>
<body>
1. double press key 1 from keyboard<br />
2. press ctrl+1 or ctrl+2 from keyboard
</body>
</html>