![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I keep getting 'member not found' error if I try to do the below command: // window.event.ctrlKey = false; // assigning value to property // Is it not allowed to change the window.event.ctrlKey value? |
|
But according to the reference in [url], the ctrlKey property is read/write in IE 5 and later? |
|
Would anybody give me a clue? Is there any way that I can 'cancel' the pressed ctrlKey? |
#3
| |||
| |||
|
|
I keep getting 'member not found' error if I try to do the below command: // window.event.ctrlKey = false; // assigning value to property // Is it not allowed to change the window.event.ctrlKey value? But according to the reference in http://msdn.microsoft.com/library/de...es/ctrlkey.asp , the ctrlKey property is read/write in IE 5 and later? Would anybody give me a clue? Is there any way that I can 'cancel' the pressed ctrlKey? Thanks! Hiroshi |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
To enhanced usability, I would like to set the TAB behaviour if user presses 'CTRL + Right Arrow' key and to set the SHIFT + TAB behaviour if user presses 'CTRL + Left Arrow' key. I especially need this function in HTML Tables. For the time being, I can only concentrate for compatibility with MSIE ver.6.0 and above. |

#6
| |||
| |||
|
|
Thanks Michael and DU, To enhanced usability, |
|
presses 'CTRL + Right Arrow' key and to set the SHIFT + TAB behaviour if user presses 'CTRL + Left Arrow' key. |
|
I especially need this function in HTML Tables. For the time being, I can only concentrate for compatibility with MSIE ver.6.0 and above. Below is the code that I want to implement. // if (!window.event.ctrlKey) return true; try { switch(window.event.keyCode){ case 37: // left window.event.keyCode = 9; window.event.ctrlKey = false; // <-- this is the problem break; case 39: // right window.event.keyCode = 9; window.event.ctrlKey = false; // <-- this is the problem window.event.shiftKey = true; // <-- this is also problem.. break; } return true; } catch(exception ) { return false; } Thanks in advanced! rgs, hiroshi *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
|
I tried your solution, and managed to change the value of ctrlKey property. But now I realize that eventhough I can change the value of ctrlKey and keyCode, it won't behave like tab key. Do you happen to know why? Below is my sample code. |
#10
| |||
| |||
|
|
On 06 Apr 2004 03:57:30 GMT, Hiroshi Ochi <hiroshi_ochi (AT) nospam (DOT) com> wrote: I tried your solution, and managed to change the value of ctrlKey property. But now I realize that eventhough I can change the value of ctrlKey and keyCode, it won't behave like tab key. Do you happen to know why? Below is my sample code. [snip] I tried various methods myself, and couldn't get IE to act on the simulated events. It's strange because I was under the impression that the whole point of faking an event was to get the UI to act as though the user caused said event. |
![]() |
| Thread Tools | |
| Display Modes | |
| |