View previous topic :: View next topic
|
Author |
Message |
pradeep dodda
New User
Joined: 05 Sep 2012 Posts: 2 Location: India
|
|
|
|
Hi
This is pradeep dodda.I'm currently doing a project related to online flight ticket reservation.This project uses the concepts like CICS,DB2 and COBOL..
My question is that how to nullify the Enter key?
When i press the "Enter" key in my application there is one particular action that takes place.After that action,when the user re-press the "Enter" key it should be disabled i_e the action should be nullified.
Can anyone suggest me? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It seems unusual to want to disable the Enter Key. Most screen designs use the Enter key a lot.
You're going to get very frustrated users, who will be used to using the Enter key.
Is this in the design, or just some idea of yours? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Who believes that disabling the Enter key is a good thing?
If the Enter key is disabled, the user will then have to use some function key - which are usually associated with specicific actions, not just proceeding.
If you really want to disable the Enter key, simply add code that if the Enter key is pressed, an error is shown and the screen returned to the user. |
|
Back to top |
|
|
pradeep dodda
New User
Joined: 05 Sep 2012 Posts: 2 Location: India
|
|
|
|
Hello Bill Woodger and Dick scherrer
I thank both of you for your kind replies.
@Bill Woodger : The Enter key will be disabled for the second time in that
particular screen only. Instead the Function key F1 will be given the same
functionality of the Enter key.And this was the condition mentioned in the design..... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
And this was the condition mentioned in the design.... |
is there a remark (in lines 23/24 of the screen)
indicating this 'required' action?
i assume that PF1 is a 'confirmation'.
what if the user does not want to confirm?
has the user any valid option other than PF1? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, it's good to have more info.
I was going to suggest including some "electricians' snippers" along with the user-documentation. Some instructions on how to prise off the key-top itself, snip the wire. That's be good-'n-disabled without having to worry about the software.
However... can you not do a bit of code which says "Please Press (P)F1 to Confirm?" if they press Enter at that inappropriate point?
By the way, I still think it will confuse people. Like on the mobile phone, press key on right to delete, key on left to confirm. Works for the first two "accidental delete attempts" then makes no difference :-) |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
And (P)F1 is usually - everywhere - the Help key. |
|
Back to top |
|
|
|