Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 3.1.2
-
Fix Version/s: Unscheduled
-
Component/s: CiviCase, CiviCRM Search, Usability
-
Labels:None
Description
The current 'alert on unsaved changes' dialog uses a browser-specific UI. Neither the order of the buttons, nor the default button ('Ok') can be modified as far as we can tell. So, in order to prevent the 'Enter' key from executing the 'Ok' - we'd have to use a diffferent mechanism for this.
Note that Gmail (among other web app UI's) has the same behavior as the current implementation (and uses the same mechanism - window.onbeforeunload confirmExit - to alert on unsaved changes in an email.
---- original post ----
See issue 5593: http://issues.civicrm.org/jira/browse/CRM-5993
You can also bypass the pop-up accidently by simply entering a search phrase in the search box located in the black menu bar in the top left of the Civi screen and selecting a result from the drop down box and hitting the ENTER key twice quickly. This will actually display the pop-up but since the default selection is 'OK' navigate me away from this page you will accidently loose you information.
An improvement to this would be to have the default selection in the pop-up to be 'Cancel' and a user would have to go to some effort such as scrolling across with their arrow key or clicking on 'OK' in order to select 'OK' besides hitting enter again which could be done accidently.