ADF 10G : How to disable CTRL + Combination key ?

Dear all,
I developed ADF application using ADF 10.1.3 and have the requirement to prevent user from press the ctrl+ key ( like ctrl + p ) .
Firstly , I used JavaScript to disable this function and it worked on IE and Chrome but not on Firefox.
Actually, it work on firefox only the first time that user press ctrl key but when user press it again without reloading page , it is not worked.
This is JavaScript that I used
function disableCtrlKeyCombination(e)
            var isCtrl;
            if(window.event)
                //IE
                 if(window.event.ctrlKey)
                    isCtrl = true;
                 else
                    isCtrl = false;
            else{
                //firefox
                if(e.ctrlKey)
                     isCtrl = true;
                else
                     isCtrl = false;
            //if ctrl is pressed return false to disable
            if(isCtrl){
               alert('Key CTRL has been disabled.');
               return false;
            return true;
        }and I call this javaScript function with this code.
<af:document title="test" id="document1"
                    onkeydown="disableCtrlKeyCombination(event)"
                    onkeypress="disableCtrlKeyCombination(event)">So, I think there are other way that we can do with this problem or I have to modify coding to support this functionality on FireFox Browser.
Regards,
zenoni

Thank Frank and John,
I tried to follow the instruction that you give me but result still be the same.
I think the problem is not involve with javaScript because I can detect CTRL at the first time but the problem will occur in 2 cases.
1 . It will occurs when user press ctrl button for the second time after we close alert box .
2. when the page still shows alert message and user tried to press ctrl button ( ctrl+n and it worked)
So, I think Firefox have some background process that monitor user input or have some thing .
Regards,
zenoni

Similar Messages

  • How to disabled ctrl+alt+del on window platform

    Dear all,
    I am a java developer, I'm from cambodia, I don't know how to disabled ctrl+alt+dle on windows platform. can any one helps me to solve this problem. I hope all of you can do it. thanks for your kindness.
    Somongkol.chim

    There used to be a win32 call for it, so if you want it you'll need to go back to C/C++ and do JNI, provided it is still in the API.

  • How to disable Ctrl+W or Ctrl+C and Tab for .swf file

    How to disable Ctrl+W or Ctrl+C and Tab for .swf file
    ctrlKey = false; in KeyBoardEvents but how to apply it to the stage.

    Hello siva,
    Can I have what code return on your file..So that I can help some what
    Regards
    Kiran

  • How to disable CTRL+ALT+S on Win8

    I have an HP notebook (Pavilion 17 or something) with Windows 8 64-bit.
    I mainly use it (and primarily bought it) to play video games.
    The shortcut CTRL+ALT+S (which opens system information) interferes with playing video games as I use those keys when doing so and far too often at the same time.
    How do I disable the CTRL+ALT+S shortcut?
    I mean besides a clean install of Windows without any HP programs, obviously.

    Hello @jdk21,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how you are looking to disable the CTRL + ALT + S combination on your notebook computer, and I would be happy to assist you in this matter!
    To disable this combination, I recommend performing a clean boot on your computer. This can be done by following the steps in this document on How to perform a clean boot in Windows. This should help boot your system with a minimal set of drivers and software, enabling your system to keep the settings changed with the keyboard combination.
    If the issue continues, I recommend following the steps below by proceeding to this file location:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\HP Help and Support
    Right click HP Support Information
    Click properties
    Click the box next to shortcut key
    Hit backspace so the field says 'none'
    Apply
    Done!
    (Note, If you can't access the folder above you need to show hidden & system files. In a file explorer window click the view tab at the top, then click options on the right, select 'change folder and search options' if prompted. go to the view tab in the popup. check show hidden files, folders, drives. uncheck hide protected operating system files. apply)
    reference: http://h30434.www3.hp.com/t5/Desktop-Operating-Systems-Software-Recovery/How-to-disable-Alt-S-shortc...
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • How to disable ctrl+backspace

    I would like to know how to disable the ctrl+backspace command to log out of solaris. I am used to ctrl+backspace in windows allowing you to delete the last word you typed and I keep press that shortcut out of habit and loose my work.
    Thanks,
    CampSoup1988

    It's built in to the X server. I don't think you can disable this via X resources.
    You might be able to do a command-line login, then run your own X server (point it at a copy of xorg.conf in your home directory). But that's a lot of work.
    Darren

  • How to disable the Tab key?

    Hi,
    Usually,the most end users select partners name or code by the Tab key or pickers, how can I disable Tab key? I want users to select a partner by user-defined values.
    Best Regards!

    Hi,
    We donu2019t have a provision for disable the tab key in B1.
    If you are assigning user defined value in any field, magnifying class will be displaying.
    You should give a KT to end user that donu2019t use tab key, instead of tab key please click on magnifying class in those filed.
    Thanks and Regards,
    Senthil Maruthappan.
    Team Work Never Fails
    Edited by: Senthil Maruthappan on Jul 4, 2009 11:16 AM

  • How to disable one F key without disabling the rest

    OK, this is the situation:
    I don't want to disable all the keys because i use them often.
    I've already tried FunctionFlip, but it doesn't seem to work in Final Cut Pro (and the reason I need to disable one of the keys is primarily because I need it for a FCP shortcut)
    is there another way to disable only one key?
    OR - If I were to disable all F keys, how do I reassign some of them back to their default mac function? does anyone know the names of the menu commands for Volume up and down and for mute?
    Thank you so much!

    To use the F keys as assigned in FCP....

  • How to disable CTRL + ESC from regedit?

    Hello,
    I have an issue and need to disable ctrl+esc in Windows 8. I found some FixIt to do that but it's only for Windows 7. I know that in previous version it was possible (per example with changes in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell] "DisableCtrlEsc"=dword:00000001).
    Thank you in advance,
    Best regards!
    Slobodan

    I am afraid there is no official method to disable Ctrl+Esc.
    Niki Han
    TechNet Community Support

  • How to disable Ctrl-F on PDFs

    For those of us who create .PDFs that students will use during open-book tests, it would be helpful if we could disable the Ctrl-F function.
    I know that if I save the .PDF as a jpeg or something similar, Ctrl-F becomes disabled, but for various reasons that's not a route I'd like to take.
    According to a Google search today, there have been a bunch of educators / training managers trying to disable Ctrl-F.
    thank you
    curt

    There is no sure proof way to eliminate searching for information on a regular pdf file by embedding something into the pdf using standard Acrobat technology---which is why you have put in a feature request. Most approaches that don't rasterize a pdf will not work. The student could use a different pdf-reader or disable javascript, if you are trying to limit searching functionality.
    There might be a way using an Adobe Livecycle product, you could check the LiveCycle forums, but if that would work we are talking about an very expensive product that requires the use of a server.

  • How to disable hotkeys & action keys?

    Hi, I have a Pavilion dv6 3006tx.
    I have all these strange "hotkeys" on my laptop doing non-standard things. It's pretty confusing, Alt-F4 doesn't work anymore, for instance, since the F4 key is now a monitor key. How can i make it so all the F1-F12 keys just be F1-F12 keys by default, and I can use the other function by using the fn toggle?
    I would also like to disable these so called "action keys". I keep pressing the calculator key when I intend to crouch in a game (ctrl key).
    Help, thanks.

    Key Instructions
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Please try the instructions from the link I put in and let me know if that helped you or not.
    Thank you.
    I am an HP employee
    Knowledge is power...Power to the people

  • Using PhotoShop CS4, How to disable 'Universal Shortcut Keys'?

    Hello all.
    I discovered in the latest OS, I am not able to customize my Action Shortcut Keys inside Adobe Photoshop CS4 because the "Universal Shortcut Keys" were "in the way"...; I used to able to do this with CS3 and Tiger.
    Let me illustrate:
    - In the new OS and the new keyboards: F1 is the Brightness Adjustment (Dimmer), and F4 is Dashboard (Launch)
    - In the older OS and CS3, I was able to create within, Action Shortcut Keys so that F1 I can create a Layer Mask and F4 I can delete a layer
    - In the new environment, whenever I press the F keys, the 'Universal Shortcuts' take priority.
    *How do I disable these Universal Shortcuts so that I can create customize shortcut keys?*
    Thanks and cheers

    Hi
    Thanks for the reply! Yeap this is what I am looking for, but unfortunately, or rather, I wish I can still have control over the volume keys somehow, because we work in an open environment, and sometimes we use headphones, sometimes we unplug to let our supervisor see and hear the work (by the way I am in the motion graphics business) So we constantly have to control the volume of the speakers.
    Well, I'll just have to put the Sound Control on the Menu Bar
    Thanks and cheers

  • How to disable ctrl,shift while drag and drop

    after starting the drag, i donnot want the user to change action with ctrl & shift. how can i do that?

    The Error Console click is visible in Tools of FireFox 3.6.8. Against it is mentioned the shortcut key Ctrl+Shift+J. How can I do away with this shortcut key? If I want to see the Error Console, I can click at it. This shortcut key of FireFox is interfering with this very shortcut key on InfraWare Transcription Client 2009 on which I work online and which is set to run on Internet Explorer only.
    I thank you for asking me to go through a whole gamut of an article on Key Configuration much of which is Greek to me. I am getting nowhere doing that.

  • How to disable "special" f-key function on Apple Wireless Keyboard in Windows 7

    Hi.  I dual-boot my iMac using an Apple Wireless Keyboard.  In Mac OS's "Keyboard" system preference pane, I've chosen to treat the F-keys as actual F-keys, and not the "special" function keys, such as volume control and screen brightness.  This however does not carry over to the Windows environment.
    I cannot find an option to do this on the Windows 7 side.  I've tried SharpKeys (popular Windows freeware key-mapping registry editor), however the program doesn't recognize the key being pushed (unless I hold the "Fn" key, at which point, it sees it as the F# key).
    To reiterate, I'd like to know how to use the F1 through F12 keys as F1-F12 in Windows 7, without having to use the "Fn" key.

    Hi alexia416,
    If you would like to use your Apple keyboard in Boot Camp with the standard function keys as the default, you may find the following article helpful:
    Boot Camp: Use the function keys on an Apple keyboard
    For other keyboard-related Boot Camp issues, this article is also useful:
    Boot Camp: About keyboards and key assignment for Microsoft Windows - Apple Support
    Regards,
    - Brenden

  • How to disable the F4 Key Event?

    Hi Guys,
    I have written my own FocusManager which allows me to traverse through disabled components. If a user presses the F4 key while the focus is in a disabled JComboBox, the popup becomes activated. Is there any way deactivate the F4 keystroke?
    I have tried:
    event.consume();
    combobox.setPopupVisible(false);
    combobox.hidePopup();
    I also read that F4 is a low-level event maintained by Windows. Is this true? Is there no alternative?
    -Sri :)

    To anyone who may be interested:
    I have tried all available solutions:
    1. hidePopup()
    2. setPopupVisible(false)
    3. unregistering the F4 key event
    4. catching the F4 key event and snubbing it
    I have had no luck with the above solutions. It leads me to believe that F4 key is registered under the windows environment and it is a low-level event.
    -Sri :)

  • How to catch ctrl+tab key down

    Ok, in the ItemEvent class or pVal we have a CharPressed property, for tab i'm getting a 9 character number but how can I detect if the user is pressing ctrl+tab button, I can't find any property that tells me if the user is presing control. I'm using SBO 2005....

    Hi Giuseppe
    It sounds like you are looking for the ChooseFromList Object. Look at the SDK sample code <i><b>SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList</b></i>. In the example they demonstrate using the ChooseFromList with CTRL+TAB as well.
    Hope this will help.
    Message was edited by: Louis Viljoen

Maybe you are looking for

  • Can I get Google to correctly show a Lightroom Weg gallery template?

    Hello out there. I have a web domain and have created a web gallery in Lightroom to use as a toe in the water website. Unfortunately google is only picking up an xml file rather than the whole site and therefore it cannot be viewed completely in goog

  • Re: Problem with NOKIA 5220 XpressMusic

    I bought a NOKIA 5220 XpressMusic a few days back . Evrything seemed fine , but suddenly I could not access my memory card. It says "Memory card has to be formatted" and then peration failed". Memory card doesnt show up on the computer also. What cou

  • Once I burn to DVD the footage is zoomed-in, edges cut-off

    Once burned to DVD my video is zoomed in (the edges are getting cut-off. And the clips I put in reverse are blurry.

  • Help with wireless network set up on 8820

    Can someone please give me some help before I pull the rest of my hair out! I am trying to connect my 8820 and also an 8110 to our home wireless network, each time I go through the set up procedure and find the network, put in the correct WEP key and

  • Inconsistent update flags (Notification E C( 004)

    Hi Friends,      When I processed the order in CRM Online it got replicated to R/3      and from R/3 Delivery and invoice got created and document is completed.      The Issue is that the Bdoc which has to replciate the Delivery and Invoice back to C