Pinned topic Disabling the keyboard on hitting the enter key
I am trying to disable the keyboard once I hit the enter key, so that the user allows normal processing and rendering to happen and does not hit any key and disrupts processing. If there any way that I can disable the keyboard from the time the enter key is pressed and till the time the next page is rendered completely.
tmparker 120000EHB3453 PostsACCEPTED ANSWER
Re: Disabling the keyboard on hitting the enter key2013-01-22T17:40:32Z in response to tmparkerNo I have not made any custom changes to the code in the project. What's happening is, if the user presses enter once, and as the page is loading, and the user is not patient enough to wait for the page to load, he either hits enter again or hits escape, this keyboard entry goes back to the green screen and goes to the next screen that should appear when the escape or entry goes to the green screen.
Re: Disabling the keyboard on hitting the enter key2013-01-25T19:31:58Z in response to SystemAdminWhen the user hits enter a second time, they get the following error
"The application is busy. One possible cause is reloading the Web page before the application is ready."
This particularly happens when they hit the enter button before the page is ready, also when the user hits any other key as the page is being loaded, the key is sent back to the green screen and the page is rendered as per the green screen .
GerardoMG 2700030R1H33 PostsACCEPTED ANSWER
Re: Disabling the keyboard on hitting the enter key2013-04-17T11:27:08Z in response to tmparker
I have the same problem.
No custom changes to how keys are handled.
I solved it by overriding the 'ms'-function and having it do
Before calling the original ms-function. Otherwise it would not lock the keyboard on macro or key buttons.
Also, I put a transparent div over the whole screen with a wait cursor, to prevent user from clicking links or buttons or otherwise interacting with the screen.
If there is a callback or some other proper way of overriding the default submit behavior I would like to know!