Skip to content

Commit 4b20b05

Browse files
author
Dennis Ploeger
committed
Better key handling for multiple browsers. (closes #2)
1 parent db5fa2a commit 4b20b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

de_dieploegers_godate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ de_dieploegers_godateHandlerObject.prototype.init =
2020
function () {
2121

2222
appCtxt.getKeyboardMgr()._evtMgr.addListener(
23-
DwtEvent.ONKEYPRESS,
23+
DwtEvent.ONKEYDOWN,
2424
new AjxListener(
2525
this,
2626
this.handleKeyAction
@@ -44,7 +44,7 @@ de_dieploegers_godateHandlerObject.prototype.handleKeyAction =
4444
(ev.ctrlKey) &&
4545
(!ev.altKey) &&
4646
(!ev.metaKey) &&
47-
(ev.charCode == 71)) {
47+
(ev.keyCode == 71)) {
4848

4949
this.showGotoDateDialog();
5050
return false;

0 commit comments

Comments
 (0)