sfwalter
15 Apr 2007, 3:59 PM
Hi,
I am trying to trap the F1 key so I do this:
Ext.get(document).on("keypress", function(e) {
if(e.getKey()==112) {
alert('f1');
}
}, this);
It works fine on firefox, but in Safari it doesn't work at all. Do I need to use a different event for Safari?
Thanks in advance. Scott.
I am trying to trap the F1 key so I do this:
Ext.get(document).on("keypress", function(e) {
if(e.getKey()==112) {
alert('f1');
}
}, this);
It works fine on firefox, but in Safari it doesn't work at all. Do I need to use a different event for Safari?
Thanks in advance. Scott.