Hi all,
I've got a function that captures a keypress event. This is working fine,
but in some cases I want to fire the same even again but with different
parameters.
Example;
----------------8<------------------------------------------
function editor_event(ob jname,runDelay) {
var editor_obj = document.all["_" +objname+ "_editor"];
var editEvent = editor_obj.cont entWindow ? editor_obj.cont entWindow.event
: event;
var ord = editEvent.keyCo de; // ascii order of key pressed
var ctrlKey = editEvent.ctrlK ey;
var altKey = editEvent.altKe y;
var shiftKey = editEvent.shift Key;
//more code here...
}
---------------->8------------------------------------------
If I press a key in a textarea it fires this function. What I want is if the
var 'shiftKey' is true fire the event again but with the 'shiftKey' property
'false'
I think I've got to look at obj.handleEvent (e); but I'm not sure about what
to do :)
--
,_,
(O,O)
( )
---"-"-alex
I've got a function that captures a keypress event. This is working fine,
but in some cases I want to fire the same even again but with different
parameters.
Example;
----------------8<------------------------------------------
function editor_event(ob jname,runDelay) {
var editor_obj = document.all["_" +objname+ "_editor"];
var editEvent = editor_obj.cont entWindow ? editor_obj.cont entWindow.event
: event;
var ord = editEvent.keyCo de; // ascii order of key pressed
var ctrlKey = editEvent.ctrlK ey;
var altKey = editEvent.altKe y;
var shiftKey = editEvent.shift Key;
//more code here...
}
---------------->8------------------------------------------
If I press a key in a textarea it fires this function. What I want is if the
var 'shiftKey' is true fire the event again but with the 'shiftKey' property
'false'
I think I've got to look at obj.handleEvent (e); but I'm not sure about what
to do :)
--
,_,
(O,O)
( )
---"-"-alex
Comment