HighTechTalks DotNet Forums  

Override Ctrl+F in web page ?

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Override Ctrl+F in web page ? in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mtnhan
 
Posts: n/a

Default Override Ctrl+F in web page ? - 01-05-2006 , 03:28 AM






Hi everybody, I have a web page (ASP.NET) that contain a grid. I also created
a search dialog for this grid by iframe. That means I use iFrame to make
dialog (it looks like "Winlike" ).
I would like to use hot key Ctrl + F to so my search dialog. However, Ctrl +
F is fired by browser before my dialog show. Therefore, I can show my dialog
but find dialog of browser always show. Do you know how to prevent find
dialog from showing, just show my search dialog?
Thanks so much
mtnhan

Reply With Quote
  #2  
Old   
Michael Harris \(MVP\)
 
Posts: n/a

Default Re: Override Ctrl+F in web page ? - 01-05-2006 , 07:20 PM






mtnhan wrote:
Quote:
Hi everybody, I have a web page (ASP.NET) that contain a grid. I also
created a search dialog for this grid by iframe. That means I use
iFrame to make dialog (it looks like "Winlike" ).
I would like to use hot key Ctrl + F to so my search dialog. However,
Ctrl + F is fired by browser before my dialog show. Therefore, I can
show my dialog but find dialog of browser always show. Do you know
how to prevent find dialog from showing, just show my search dialog?
Thanks so much
mtnhan
You don't say what event you are handling (onkeydown/up/press). In any
case, have you tried window.event.returnValue = false and the different
possible key events? Note that some generic hot-key combos are always
handled by the IE UI and can't be canceled.


--
Michael Harris
Microsoft MVP Scripting






Reply With Quote
  #3  
Old   
mtnhan
 
Posts: n/a

Default Re: Override Ctrl+F in web page ? - 01-05-2006 , 08:53 PM



Hi, I haddled onkeydown event but I could not cancel this event. However, If
I catch Ctrl + F and then try to show a dialog (by alert() command) or modal
dialog, the find dialog of IE will not show.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.