source:
drbl_ui/flow_chart/remote_flow_chart.files/keys.js
@
81
Last change on this file since 81 was 21, checked in by chris, 17 years ago | |
---|---|
File size: 307 bytes |
Rev | Line | |
---|---|---|
[21] | 1 | |
2 | function keyHandler() | |
3 | { | |
4 | var e = window.event; | |
5 | var tag = e.srcElement.tagName; | |
6 | var override = !(tag == "A" || tag == "INPUT" || tag == "SELECT" || tag == "FORM" || tag == "SUBMIT"); | |
7 | ||
8 | if(override && e.keyCode == 13) //13 is <enter> key | |
9 | { | |
10 | e.srcElement.click(); | |
11 | } | |
12 | } | |
13 | ||
14 | document.onkeypress = keyHandler; |
Note: See TracBrowser
for help on using the repository browser.