← Back to team overview

openlp-core team mailing list archive

[Bug 1197659] Re: Delete button in Configure Formatting Tags gets focus

 

If you set the focus to the button you cannot edit but then when you press enter the delete still runs. 
The problem is in the setting of default and autodefault 

Default property

If this is set true, the button will be a default button.
If Enter is pressed on the dialog, than this button will be pressed, except when the focus is on an autoDefault button.

There should be only one default button. If you add more then the last
one added will be the default button.

AutoDefault property

If this is set true, the button will be an autoDefault button.
If Enter is pressed on the dialog, than this button will be pressed if the focus is on it.

If the focus is not on an autoDefault button and there is no default
button than the next autoDefault button will be pressed for Enter.


I propose we use setDefault.  When save is enabled that has default
otherwise delete has default.

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1197659

Title:
  Delete button in Configure Formatting Tags gets focus

Status in OpenLP - Worship Presentation Software:
  Incomplete
Status in OpenLP 2.0 series:
  Incomplete
Status in OpenLP trunk series:
  Incomplete

Bug description:
  http://support.openlp.org/issues/2005

  When adding a new formatting tag, the delete button gets focus. It
  seems like the Save button should get focus instead.

  How to reproduce.
  Open "Configure Formatting Tags" dialog.
  Click new.
  Click in one of the line edits (Delete button gets focus)
  Change the text
  Press enter (I would assume that this would save the new tag)
  New tag gets deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1197659/+subscriptions


References