Groups | Blog | Home
all groups > flash (macromedia) > november 2003 >

flash (macromedia) : How to trap the Ctrl+N key combination in Browser


anishu
11/25/2003 11:58:42 AM
one option is javascript, u can deactivate IE short cuts ?? we r deactivating right menu using javascript so i think its possible. After seeing this query, i had tried pop up and chromeless but in vain. On press of ctrl N new window is opening.

i think better go for javascript which can deactivate ctrl N function of browser

next is use any other keys, i don't know tht will work, may be u need 'n' key

AnishVarghese
urami_
11/25/2003 1:42:30 PM

[quoted text, click to view]


Well , over all it is never recommended to use common short cut keys
in flash combos. Users might have different configurations which you can't control
and forcing to work otherwise is too invasive .
For simple example, I Tweak my OS to open Photoshop on Ctrl N regardless
working environment , then even if you manage to suppress browser , it would not
matter on my OS .

You most likely will have to settle with other key combo .



Regards

urami_*



<lsym>

There's no place like 127.0.0.1

sunilkumar
11/25/2003 11:00:12 PM
I have a Flash movie in which I assigned Ctrl+N key combination for some
validation. In flash player it is working properly and it is possible to
enter the key combination, But when i publish this movie in a browser
(Internet Explorer or Netscape) , whenever i pressed Ctrl+N a new browser
window is opened. For more information, I am setting the focus in the movie
right from the loading of the movie. And I don't want to set the focus back
on the browser at any time. Is there any possibility to trap this key
combination in Browser while the focus is in the movie.


sunilkumar
11/25/2003 11:54:55 PM

[quoted text, click to view]




----- Original Message -----
From: "urami_" <noSPAM@FlashFugitive.com>
Newsgroups: macromedia.flash
Sent: Tuesday, November 25, 2003 11:12 AM
Subject: Re: How to trap the Ctrl+N key combination in Browser


[quoted text, click to view]

But I just need to stop the creation of the new browser window while the
focus is in the flash plugin.I can use the javascript onkeydown event to
trap the above said combination when the focus is in browser window.But
since my focus is in the movie right from the beginning I am not getting the
keydown event of the window.But the flash movie can sense the key
combination.But whenever this key combination comes , a new browser window
opens with same plugin.How can I stop the creation of the new browser
window. Because I need this key combination in flash movie for evaluation .

Anyone has any idea







AddThis Social Bookmark Button