By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,617 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,617 IT Pros & Developers. It's quick & easy.

alter keypress event

P: n/a
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(objname,runDelay) {
var editor_obj = document.all["_" +objname+ "_editor"];
var editEvent = editor_obj.contentWindow ? editor_obj.contentWindow.event
: event;

var ord = editEvent.keyCode; // ascii order of key pressed
var ctrlKey = editEvent.ctrlKey;
var altKey = editEvent.altKey;
var shiftKey = editEvent.shiftKey;

//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
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
znndrp wrote:
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.


Does really nobody have a clue about this? :(

--
,_,
(O,O)
( )
---"-"-alex
Jul 23 '05 #2

P: n/a
znndrp wrote:
znndrp wrote:
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.


Does really nobody have a clue about this? :(


Do you have no name and valid sender address?
PointedEars
--
Whatever you do will be insignificant,
but it is very important that you do it.
-- Mahatma Gandhi
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.