Disabling ENTER key

Hi Experts,
I need to disable the ENTER button (first button in application toolbar, before tcode input box) in one of my custom screen.
Pl explain me how to disable this button.. Many thanks in advance!!!

Benu,
Did you set your own status in your program using set pf-status 'name'.just double click on that and check the options
Thanks
Bala Duvvuri

Similar Messages

  • Disable ENTER KEY on text item

    All,
    I am trying to disable SUBMIT on ENTER KEY for a text item on a page as below but still its submitting how can i achieve this.
    I want the page to totally disable the enter key so when i press ENTER KEY nothing happens,
    what i did:
    1. when page loads,
    $("input").keypress(function evt) {
    var charCode = evt.charCode || evt.keyCode;
    if (charCode  == 13) {
    return false;
    2.
    Submit when Enter pressed
    NO
    APEX 4.2
    thank you.

    Hi,
    Your code is not valid.
    I'm sure it raises errors.
    Place to page JavaScript -> Execute when Page Loads
    $("input,select").keypress(function(e){
    return e.keyCode!==13;
    Regards,
    Jari

  • Problem with disabling "ENTER" key in JTextArea

    Hi,
    I have the following codes to disable the 'ENTER' key in the JTextArea,
    but it does not work. Does anyone know why?
    KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
    textarea.getKeymap().removeKeyStrokeBinding(enterKey);
    textarea.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    // do something
    Thanks,
    Pin

    I don't know how you mean "disable", but if you are going to ignore the Enter key, then add a KeyListener to the text area, and in the key pressed method, consume() the key event if the VK_ENTER was pressed. That's all, and you don't have to deal with that key binding thingy.
    The other two event types (typed and released) might be ignored, the enter is processed during key press (as it is now, with the default settings).
    The reason is that processing the Enter key (and other such internally understood keys) is done by the peer, but the peer won't get the key event if it's already consumed.
    FYI: Were it a JTextField, consuming the Enter key presses would mean that the field won't fire action events any more. Since text area does not fire action events, therefore it's a non issue.
    FYI2: Consuming the event only blocks the event to be sent to the peer, all the other listeners still get it.

  • How to disable "Enter" key - urgent

    - i have on my site one site password protected. Now i don't want that users cann use Enter key when they write password. Only when the click with mouse. For that i have onClick="..."
    How can i disable only enter key?
    Thanks

    Don't want the user to press the Enter key... who
    thinks up these ideas anyway? It never ceases to
    amaze me.Internet team in one of my early carrer companies were having problems with a search field on their web project... When the user pressed enter they were getting an error, but it worked when they clicked with the mouse.
    So they decided to remove the ability of the user to press enter, rather than figure out what was wrong and fix it... But they couldn't figure out how to disable the enter button either, so they just put red text below the search field asking users to click on the button and not to press enter...
    How the hell do some people get in the door in Software Companies?

  • JSF Disable Enter key on h:inputText......

    Hello All,
    Hope all of you are doing good. Currently we are using JSF 1.1 for our new application, i have got a requirement as follows. This is a weird problem i hope....
    I have a <h:inputText....> component in my page and when if user presses "Enter" key the page is getting submitted. I have tried by adding the following lines of Javascript code but still it is not working. Could you please review and suggest me on this.
    function kH(e) {
         var pK = e ? e.which : window.event.keyCode;
         return pK != 13;
    document.onkeypress = kH;
    if (document.layers) document.captureEvents(Event.KEYPRESS);
    Any suggestions are really appreciated. Thanks in advance.

    Try this and see how it works for you:
    <script language="JavaScript">
    function disableEnterKey(e)
         var key;
         if(window.event)
              key = window.event.keyCode;     //IE
         else
              key = e.which;     //firefox
         if(key == 13)
              return false;
         else
              return true;
    </script>
    <h:inputText onkeypress="return disableEnterKey(event)" />

  • Disabling the enter key

    Hi, I have a jsf page that has an <h:inputText> fileld, and whenever I fill it and press enter the form gets submmited. I want to disable the enter key, so that if the user hits enter nothing will happen. This way the form will only be submmited by clicking a button with the mouse.
    Thank you,
    Komyg

    You can use javascript to do this. The merits of using javascript can be saved for another time. Simply put 'javascript disable enter key' in a Google search and you will find what you need. Here is the link at the top of that list:
    http://www.felgall.com/jstip43.htm
    Good luck.

  • Since upgrading to Firefox 10.0.2 my AVG extension has had to be disabled, as after typing in any web address in the address bar, the enter key had no effect and I could not go to the site without pressing the Reload arrow on right.

    I have recently upgraded Firefox to the latest version 10.0.2. After that I could not enter any website address and press the enter key and get to the website, nor could I select a website from the dropdown list of previously visited websites. The only way I could get there was by pressing the arrow on the right side of the address box (Reload current page). Once I disabled the AVG extension, everything worked normally. As soon as I enabled the AVG extension, it stopped working again.

    Follow these steps for the controls to work:
    # Start > Programs > Mozilla Firefox > Mozilla Firefox
    # Find the “Tools” menu at the top of the browser window and select “Add-ons”.
    # Click on the “Extensions” icon to make sure you’re in the correct option menu.
    # Locate “AVG Safe Search” and click on the containing line to highlight and select the add-on.
    # Click the “Disable” button and close the Add-ons window.
    # Close down any Firefox windows you may have open.
    # That’s It – You’re Done!

  • Why does firefox change fonts when I am trying to download or get help, click and enter keys are disabled why?

    I recently did a clean install of windows7 after returning from Europe and installed Mozilla firefox being fed up with microsoft and google .
    Fire fox seemed to be working ok but 7 out of 10 downloads were failing, and it seemed that every ebsite entered in the address bar turned into a question.
    There was no save shortcut, or paste buttons just a set of to me useless buttons first html, last html, then when I tried to contact help all of a sudden I got a "install fonts" notice and the enter key stopped working,
    and any action key was also disabled without advising me.
    It appears that either Mozilla or someone doesn't want me using firefox.
    I also noticed that the clean disk and other utilities didn't work and that the temp and temp internet folders were empty when I tried to open them but they actually had some 25 megabytes in them when queried as administrator. I also noticed a quick flash reference to Jscript=void,
    and my 32 bit computer suddenly started up as a 64 bit Turion.
    scan and system clean said machine was clean.
    Whats going on here?
    I am not on my machine, I can't contact you on it because the enter button has been disabled by font change.
    Maybe this robot needs some help too!

    Can you undo the system restore?
    Note that using System Restore can cause your Firefox installation to get corrupted because not all files are restored (only files in a white-list), so be cautious with using System Restore.
    *You may lose data in the Firefox profile folder like .js and .ini files pr profiles.ini can be affected.
    *You may need to (re)install software that was affected.
    In case you need to reinstall Firefox then you need to delete the Firefox program folder before reinstalling to make sure that all files get replaced.
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • 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

  • Macbook internal keyboard  return/enter key disabled

    Suddenly apropos of no software changes, the enter key has stopped functioning.  Is there a repair or am I going to have to buy a new upper case at $150 plus labor because one key has stopped working?  I have tried an external keyboard and the external return key will work.  The big problem is getting a google search to enter.....
    Thanks for any comments.  Unfortunately,  it seems that this is a hardware problem since I have not had other issues before with keyboard freeze of any kind.

    The genius bar on Michigan Avenue has a stool with my name on it... guess I'll be bellyin' up to the bar again this week.
    Thanks.

  • Submitting a form with enter key causing strange problems

    I am having a very strange problem with a webapp I am currently developing. I am using JSF 1.2 along with Facelets and RichFaces. I have coded a workflow/wizard 4-step process, and on some pages I have 4 submit buttons that all call different actions on the page. The users thought it would be useful to have the enter key submit the form, so I followed some online resources to trap a keypress using javascript, looking for the enter keycode and calling document.getElementById("elementName").click(). This works fine most of the time. Sometimes, though, it seems as if an entire new session is being created, and odd behavior starts happening. For example, my page will only include 2 of the 4 facelets on the screen -or- I will get NullPointerExceptions for objects that I know have been created in the session bean I am currently using -or- I will get a duplicate form Id after trying to re-submit the page. Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"? I'm really at my wit's end here (plus it's nearly 3 AM, that never helps things). All of the buttons being clicked are standard h:commandButtons. There is some setTimeout logic included to disable the buttons on the page to prevent double clicks (I cannot disable them onsubmit because disabled buttons don't pass the right values, perhaps that's causing it, but if so, clicking the buttons with the mouse would cause that issue too, right?)
    I am not posting the code (yet), but if anyone wants to take a look see and see if I am doing something really abhorrently wrong, I'm more than willing to, I'm just curious if anyone has had problems regarding javascript submission of forms via the click() method. Clicking the button does not exhibit this type of behavior. Just as a side note: I am doing different things with the enter key depending if a modal window is open (the enter key closes the modal if it's up, and if not, it submits the form via a button click).
    Any help is much appreciated, if anyone has any inkling about where I should start looking for answers it would be really helpful.
    Thank you.

    edfrost wrote:
    Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"?My guess is the second of these. You need to suppress the event handling after programmatically clicking the button.

  • How to call a method in backing bean on hitting 'Enter' key on a page.

    Hi all,
    I would be obliged if any one can provide me solution for the below given problem.
    My requirement is to call a method in backing bean when i hit 'Enter' key on a JSP page.
    I am trying this by using a script given below.
    *function fnChangeFocus(){*
    *if(window.event.keyCode==13){*
    * document.getElementById("mainform:submitForm:commandbutton").focus();*
    The JSP has the textbox as given below.
    *<h:inputText id="inputtxtboxid" disabled="false" value="#{Bean.inputvalue}"*
    onkeypress="fnChangeFocus()" size="24" />
    Using this I could not acheive the required functionality. Please suggest some alternative.
    Thanks,
    Jagadeesh Pala

    Only a form element supports the submit() function. Make sure that the getElementById returns the appropriate form. Or rather pass the element as the 'this' reference to the function and get the parent form from it.
    After all this is just basic DHTML / Javascript+DOM knowledge and in fact this has nothing to do with JSF. For future basic DHTML / JS+DOM questions you may take a look at the appropriate forums, e.g. dhtmlcentral.com, dynamicdrive.com, etcetera.

  • All of a sudden my Enter key no longer works in SQL Developer.

    All of a sudden my Enter key no longer works in SQL Developer. I don't know how I managed to disabled it. Can anyone tell me how to re-enable it?
    I already tried the following:
    - I closed the application and re-opened it. - It didn't work
    - I re-started my machine. I didn't work
    Help! Thank you

    The same thing has just happened to me and this was very useful to correct the problem --- but now I am wondering why or how this happened. To the best of my knowledge, I haven't make any setting changes so why did I lose the Enter action?

  • I have updated to Mozilla 16.0.1 and yahoo toolbar 2.4.8.20120412011105. Search assist now no longer works on the toolbar. Enter key also will not work on toolb

    I have updated to Mozilla 16.0.1 and yahoo toolbar 2.4.8.20120412011105. Search assist now no longer works on the toolbar, nor does the enter key. I've reinstalled both Mozilla and the yahoo toolbar. I've followed the instructions given in the customize toolbar section, but I am thinking that perhaps this toolbar just doesn't work with Mozilla?

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Records are getting duplicated on presing enter key in table control

    Hi All,
    I am using table control in module pool program.  The issue is records are getting duplicated on press of enter key.
    I cannot use sy-ucomm enter and do some validation thing in my code. As the record should get update in int_tab(internal table). Otherwise ZSTR_TAB(table control)will be blank after pressing enter key.
    I have gone through all the previous threads on this. Have implemented sol provided in one of threads. Now records are not getting duplicated but the next line is getting disabled. The code to avoid duplication is :
    MODULE read_table_control INPUT.
      data tc-lines type i.
      DESCRIBE TABLE int_tab LINES tc-lines.
      IF tc-lines GE control-current_line.
        MODIFY int_tab FROM zstr_tab INDEX control-current_line.
      ELSE.
        IF gcreate_code = 'CREATE'.
          zstr_tab-zemp_num = gemp_num.
          INSERT zstr_tab INTO int_tab INDEX control-current_line.
        ENDIF.
        IF gchange_code = 'CHANGE'.
          MODIFY int_tab FROM zstr_tab INDEX control-current_line.
        ENDIF.
      ENDIF.
    ENDMODULE.   
    This module is in PAI. Now how to make the lines in control input enabled??
    Any other sol for avoiding duplicate records on pressing enter key?
    Thanks,
    Seema

    Hi,
    Have you written any code in when Others of case...Endcase  ?
    If Yes then checkout if there is anything wrong over there, debug and check.
    If not then write delete adgecent duplicates from Int_tab comparing key fields.
    Also check in PBO, if you have written any query that selects data from particular table and appending the internal table irrespective of entry is already exist. So you should write select query in the if...Endif block as below,
    If int_tab[] is not initial.
    select * from ZSTR_TAB
    into table int_tab
    where .........
    endif.
    If above is not the case then debug and check where exactly entries are getting duplicated so that I can have idea what exactly is happening.
    Regards,
    Umang Mehta

Maybe you are looking for

  • Help Needed !!!!! in New Hire Proration and Carryover (PTO Accruals)

    Dear All, We are facing a problem in Accrual formula where Accrual Term is 1-July to 30 June Accruing Multiplier is 'M' Accruing Frequency is 3 Months Accrual Rate is 5 Days Employee gets Leave at the end of each quarter 1st Quarter (July-Aug-Sep) -

  • Can I copy my new laptop (system an all) onto my old computer?

    Hi, I recently bought a Macbook Pro 15" Retina display, but doesn't have ethernet or firewire ports and it won't read my old ipod as well as a LOT of my applications. Fortunately I still have my old Macbook Pro. Unfortunately in February, by error I

  • Report to understand exact status of FG

    Dear Experts, One question is going i my mind but still i have not found the solution. And it would be thankful to you if you clear my following doubts. I run the MRP and see the results in Md04 or md05, then i go to order report to know the exact st

  • How do I create an Array of Images

    Hi, I'm creating a program that basically is a slideshow. It has buttons that allow the user to switch from image to image, and has some audio in the background. I was wondering how I might create an array to store the images. I'm very new to Java, s

  • Reinstall of ADFS 3.0 fails during configuration step with error ADRepository.CreateTopContainer

    I am installing ADFS 3.0 alongside an existing ADFS 2.0 farm.  I followed the steps as detailed here: http://office365support.ca/migrating-ad-fs-2-0-to-ad-fs-3-0-for-office365-single-sign-on-2/ That worked fine initially, but I ran into problems and