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 :)

Similar Messages

  • 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 the "turn page" event triggered by the scroll/swipe function?

    The problem is as follows.
    The default behaviour of Acrobat Reader (both stand alone and browser plug-in) is to allow scrolling/swiping with the mouse wheel/trackpad. This is useful when the pdf's page length is greater than the screen's own length, because you can read the pdf with no need to distract your attention from the text to the scrollbar button. However, the same scroll/swipe function turns into a usability problem when the pdf is embedded in a html page and the pdf's page length is smaller than the browser's length. In this case, the scroll/swipe turns the page, distracting your attention from the text to the unintended behaviour of the browser. What happens is that you are so used to scrolling/swiping that you did it unintentionally in the pdf's caption area. You really did not want to turn pages in the pdf. Furthermore, if the pdf takes the whole html page, being a website, the scroll/swipe function flips the website pages in ways that neither the reader nor the writer had ever intended. Hence the question. How to disable, in this case, the "turn page" event triggered by the scroll/swipe function? A JavaScript should do, but the SDK documents did not help so far...
    Message was edited by: 41457173
    Message was edited by: 41457173

    ... or release a patch for the API,
    ... or suggest an alternative route to achieve the intended result.

  • How to make the TAB Key Event called

    Hi ,
    I want to make the tab key called twice when I hit on a button. It should jump to the next 2 cell.
    Thanks.
    DT

    Here's a couple related threads
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583877
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712386
    I'd also suggest exploring the Search Forums available on the left,
    which is how I found those threads:
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=focus+traversal+tab+text&subCat=siteforumid%3Ajava57&site=dev&dftab=siteforumid%3Ajava57&chooseCat=javaall&col=developer-forums

  • How to disable the Tab key Focus Traversal

    I have to disable the default focus traversal function of tab key

    The method tht you need to look into is setTraversalPolicy()

  • In ALV display model ,how to accept the ENTER key event?

    Dear All,
    I have used ALV by  GRID DISPLAY model ,not class model.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          i_structure_name         = 'T_ITAB'
          is_layout                = gs_layout
          it_fieldcat              = t_fieldcat[]
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = t_itab
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    For example :
    IN ALV DISPLAY, there are two fields, one is MATNR, the other is MAKTX.
    When user input the material value in MATNR field and press ENTER, then ALV can run my code to select the MAKTX into MAKTX field and display it synchronization.
    Now I have realized update edit in ALV,but I found only I double click ALV row, then the MAKTX can update.
    Please give me help,
    Thanks
    Sun

    This is the document written by me on Interactive ALV.. hope this maybe helpful for u..
    When an Interactive Report is needed in Classical Display, we go for AT LINE-SELECTION. But when the same is needed in ALV Display, this method won't work. Instead, we need to use other way which is explained below:
    We use REUSE_ALV_GRID_DISPLAY for ALV Display. Now, normally we call that FM in the following way:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = 'PROGRAM_NAME'
                it_fieldcat             = tb_fieldcat
           TABLES
                t_outtab                = tb_output.
    When it is needed to get an Interactive ALV, call the same FM in the following manner:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = 'ZTEST75599_1'
                it_fieldcat             = tb_fieldcat
                i_callback_user_command = 'USER_COMMAND'
           TABLES
                t_outtab                = tb_output.
    Now, in the report, create a subroutine with the name USER_COMMAND as follows:
    FORM user_command  USING p_ucomm    LIKE sy-ucomm
                             p_selfield TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&IC1'.   " &IC1 - SAP standard code for double-clicking
    Based on the requirement, write the logic                          *
      ENDCASE.
    ENDFORM.
    No need to call the subroutine as PERFORM user_command. This will be takane care by REUSE_ALV_GRID_DISPLAY. We need to just write the subroutine in the report. That suffices.
    Some more useful points for Interactive ALV:
    1. If Hotspot is needed, then that should be done by declaring hotspot (one field in slis_t_fieldcat_alv) as 'X' in tb_fieldcat which is of type slis_t_fieldcat_alv. When hotspot is active, single click will be enough or else you should double click on the output data.
    2. In Classical Display, when it is needed to read the record on which we double clicked, we do that in following way:
       AT LINE-SELECTION.
           GET CURSOR LINE wf_line. " wf_line gives the line number on which it has been clicked
             READ LINE wf_line OF CURRENT PAGE.
      But this won't work for ALV. Instead, the following logic can be used:
    FORM user_command  USING p_ucomm    LIKE sy-ucomm
                             p_selfield TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&IC1'.   " &IC1 - SAP standard code for double-clicking
          READ TABLE tb_output INTO wa_output INDEX p_selfield-tabindex.
          IF sy-subrc EQ 0.
    Based on the requirement, write the logic                          *
          ENDIF.
      ENDCASE.
    ENDFORM.

  • Disable the "Poweroff" key in keyboard

    How to disable the "Poweroff" key in keyboard?

    Modify
    /usr/openwin/lib/speckeysd.map
    and comment out:
    SunPowerSwitch
    SunPowerSwitchShift
    You might have to reboot or restart dtlogin to reinitialize the keyboard map
    Sharif Rizal

  • How can I permanently disable the "fn" key?

    Hi.  My subject says it all.  How can I permanently disable the "fn" key?
    At first I thought I had a virus or something because when I typed only weird symbols came out.  Then I reset the computer.  Then I couldn't even log in.  I tried Time Machine etc.
    Then I realized that the "fn" key wasn't working right.  It seems to be working backwards.  It acts like it's being pushed when it's not, and when I do push it it acts like it's not being used.
    So it's kind of a simple problem but it's really annoying.
    Is there a way I can just disable it permanently?  Even physical force if necessary.  I tried to break it but it wouldn't break.  I don't really use the key anyway so it doesn't really matter.  I don't want to pay a bunch of money to replace a key I don't even use.
    Thanks.  I hope someone knows.

    That's the best answer.  Yeah usually if you press "fn" or "option" you can get it to work for awhile.
    Yeah I have considered some kind of external keyboard also.  It will make a laptop less laptopish.  But it could do the job for awhile.
    It's sad because I don't even care about the "fn" or "option" keys.
    But anyway it's not catastrophic at least.
    And yeah maybe we can get a new computer later or something.  I like mine though.  It's customized and is how I like it right now.
    Anyway thanks for the reply.

  • How can i disable the Enter key in JTextArea?

    How can i disable the Enter key in JTextArea?
    When i press Enter key in JTextArea,I hope JTextArea do nothing.
    Thanks!

    HI, I've the same problem;
    uncle_alice solution works fine, but if I paste in textArea a multi-line text,
    this last results on more lines (rows);
    Isn't possible to avoid this?
    Alternatively, how can I disable cut/copy/paste on TextArea?
    Thank you in advance.
    MargNat
    Message was edited by:
    MargNat

  • How to disable  the mouseWheel event in Flex2?

    How to disable the mouseWheel event? Basically I want my
    flex2 app not to respond to any mouse wheel events. Thanks.

    I downloaded one of the PDF form (IMM5490) from cic.gc.ca and saved it on my computer after filling it up. Later on the following message popped up when I tried to open the form again later to in order to make some changes.
    "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document"
    Your help in this regard will be greatly appreciated, since, I have already filled the form with a lot of information and I will not be able to edit the form with additional information unless I disable the extended features ( I guess).

  • How can I disable the control key?

    How can I disable the control key?
    My Controll-Key is permanently pressed.... i dont know why, please help me!

    Take it to an Apple store or dealer to get it repaired.

  • How do you disable the shortcut key in Mail that deletes all mail in the trash folder

    Is there a way to disable the shortcut key in Mail in Mountain Lion that deletes all mail in the Trash folder in all accounts: <shift><command><delete> ?
    I did it once by mistake and it deleted all my trash - it is very difficult to restore when there are thousands of messages in various emaiil accounts.
    Thanks

    While you can't (so far as I know) remove it - you can assign a different (& less likely to be used accidentally) one via System Preferences - Keyboard - Shortcuts.
    Go there, create a new one (or 2) for Mail only, and give it the exact name(s) if the menu item(s) in question, capitalisation & ... included.
    Below is on 10.6, but the idea's the same

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID promts the previously used email user IDs... Want to disable this feature---How can ot be done ?

    Question
    How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID prompts the previously used email user IDs... Want to disable this feature---How can it be done ?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * Tools > Options > Privacy > History: "Remember search and form history"
    * https://support.mozilla.com/kb/Remembering+passwords
    * https://support.mozilla.com/kb/Form+autocomplete

  • How to Disable the Lead selection Action on aTable n How to Refreh a Page

    HI....
    1)How to Disable the Lead selection Action on aTable n How to Refreh a Page r web dynpro application.
    In my case i have a table n user enters data on multiple rows in table , n i have some input fields outside of table for those Inputs fields am settiing the data  at the screen initilization(in Init() moethod by hard code).the problem is whenever the is clicking in th 2nd row of a table the Lead Selection is triggerig and the data in the Input Fields outside the table is not displayinig.
    So by removing the lead Selection Action of a table i thought i can reslove this,
    2) How to refresha page(like we click F5 on key board),is it can be done thru code in web dynpro application
    Regards
    Rajesh

    Hi,
    You did not explained what is your functionality or coding in leadselection. Is that action on leadselection is necessary for you?.
    1)If you just want to remove the action then go to table properties and remove the action for leadselection.
    2)If you still want to continue with your leadselect action, then what you can do is.. write the code in leadselection action to again set the input fields which are out from table.  That is what you did in your init method.
    Page Refreshing
    3) What do you mean by page refreshing? is that refreshing your table only or both the table and input fields. 
         What I understood is you are allowing the user to enter values in table and soon after pressing a button the values should be saved and the data in input fields shld be deleted.  For this if you only invalidate the node then the user entered data will be lost. 
    So what you do is after getting the input data from the user add it to a ArrayList and then invalidate the node which clears the data in input field. Finally bind the Arraylist to your node.  see the following code. This is a concept make changes according to your requirement
    ArrayList list1=new ArrayList();
    wdContext.nodeAbc().bind(list1);
    IPrivateExcelviw.IAbcElement ele = wdContext.createAbcElement();
      ele.setNo(wdContext.currentAbcElement().getNo());
      ele.setName(wdContext.currentAbcElement().getName());
      ele.setMarks(wdContext.currentAbcElement().getMarks());
      list1.add(ele);
      wdContext.nodeAbc().invalidate();
    wdContext.nodeAbc().bind(list1);
    Revert me if you have any doubts
    Regards
    Raghu
    Edited by: Raghunandan Madarikuruva on Oct 16, 2008 8:07 AM

Maybe you are looking for

  • Weird Battery Behavior in 7.1.1

    Has anyone else noticed weird behavior after upgrading to 7.1.1 - on my 5s its not that the battery is draining quickly - in fact its showin 5 hours 40 minutes usage with 75% remaining - which i find hard to believe whats weird is standby time equals

  • XML parser in embedded OC4J

    How can I add option to embedded OC4J, so it will take the xml parser I specified. example as following. -Dorg.xml.sax.driver=oracle.xml.parser.v2.SAXParser Where I can setup in Jdeveloper? or is some property files?

  • Acrobat open a file

    In acrobat (standard version I assume where I can combine files to pdf and convert etc) I am having difficulty to open a file and then give a password to that file. It seems to open in reader. In Adobe acrobat.com and downloading and opening a conver

  • PDF printer securty options?

    Is there a pdf printer that can create a pdf with reader rights already extended? this way i dont have to open all the pdf's that i print in acrobat after i make them.

  • How to recognize file type (bytearray type)

    Hi, what ist the simplest way to detect file type or the type of byte[ ]? I mean, for example, how to detect if a "xyz.pdf" is a "really" PDF-File and not some Jpg with ".pfd"-extension. Thanx in advance vedran