-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (26 loc) · 734 Bytes
/
index.html
File metadata and controls
30 lines (26 loc) · 734 Bytes
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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="keymage.js"></script>
</head>
<body>
<script type="text/javascript">
keymage('defmod-. c', function(e) {
console.log(arguments);
e.preventDefault();
});
keymage('chat', 'defmod-. k', function(e) {
console.log('CHAT', arguments);
e.preventDefault();
});
keymage('chat.input', 'defmod-. e', function(e) {
console.log('CHAT INPUT', arguments);
e.preventDefault();
});
keymage('defmod-. shift-meta-j', function(e) {
console.log('default prevented');
}, {preventDefault: true});
keymage.setScope('chat.input');
</script>
</body>
</html>