Bug report #6815

Forms with input fields and multiple controls shouldn't bind enter key to OK button

Added by marisn - over 7 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:GUI
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:15960

Description

Currently most of QGIS forms have binded enter key event to OK button. It might cause unwanted side effect if form has an input field and OK button is not the only possible action to take.

Examples:
  • Create new Shapefile has "attribute name" input field. If user presses enter key after typing in attribute name, whole dialog gets closed instead of just adding a new attribute and the specified attribute is NOT created;
  • Project properties -> CRS has a filter dialog. Pressing enter closes dialog instead of just searching.

History

#1 Updated by Jürgen Fischer about 6 years ago

  • Category set to Forms

#2 Updated by Matthias Kuhn about 6 years ago

  • Category changed from Forms to GUI

#3 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#4 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF