Results 1 to 7 of 7

Thread: HOW DO I: replace the ctrl+f funcion of IE

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769

    HOW DO I: replace the ctrl+f funcion of IE

    I have made my own modal dialog box which brings up some data
    for the user to search through. I have given a button which would display the modal dialog, but I would like to give it a hotkey. I particularly want to use CTRL+F, but this always brings up the IE find box.

    Any suggestions?

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    <HTML>
    <HEAD>
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    function document_onkeydown() {

    if ( (event.keyCode == 70 || event.keyCode == 102) && event.ctrlKey == true )
    {
    alert('ctr-f')
    }
    }

    //-->
    </SCRIPT>
    <SCRIPT LANGUAGE=javascript FOR=document EVENT=onkeydown>
    <!--
    document_onkeydown()
    //-->
    </SCRIPT>
    </HEAD>
    <BODY>
    </BODY>
    </HTML>

  3. #3
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Does any have, or know where to find a list of the keys?
    thx
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Its giving me my function and the IE find box... any ideas?
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  5. #5
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    *bump*

    (see both prev posts)
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Can you not just use accesskey instead?

    Code:
    <input accesskey="F" value="Alt + F" type="button" />
    I think that means windows uses Alt + F and Mac uses Cmd + F, or is that not what you want?

  7. #7
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Actualy I was hoping for ctrl+f cos this app I am working on is an online version of our user database that is origonaly done localy in FileMaker. People have grown so used to the ctrl+f to find records that I was hoping to be able to use it
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width