Prev Previous Post   Next Post Next
Old 15th September 2011, 16:42   #1
EZsteve
Junior Member
 
Join Date: Sep 2011
Posts: 6
Disable Enter Key

I have a dialog With 3 buttons: Back, Accept and Decline - Within the displayed text there are two links (Not sure if the links are relevant to the question).

Anyway, initially the BACK button is the default:
${NSD_SetText} $mui.Button.Next "&Accept"
${NSD_SetText} $mui.Button.Cancel "&Decline"
SendMessage $HWNDPARENT ${WM_NEXTDLGCTL} $mui.Button.Back 1

The problem is, if the user CLICKS on either of the links (Or for that matter anywhere in the dialog), the FOCUS (Or default) moves to the ACCEPT button - At which point the user can press ENTER and move forward - The requirement is for them to physically CLICK the ACCEPT button.

Question: How do I: (1) Stop the user from pressing ENTER, or (2) Ensure that clicking within the dialog does not change the default, or even (3) ensure that the BACK button is always the default.
EZsteve is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
disable enter key, maintain default button

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump