Menu selection by keyboard when adding tags sometimes creates spurious tag
Submitted by René Seindal
Link to original bug (#773625)
Description
Sometimes when adding tags to photos, the enter key is interpreted incorrectly.
What happens (sometimes) is this:
- press ctrl-t to open the add tag dialog
- enter part of a tag
- move down the suggestion menu using the arrow keys
- select a tag by pressing return
expected and usual behaviour is
- menu selected tag substitutes prefix of tag in dialog entry
- further tags can be selected
what happens every once in a while is
- tag dialog is closed and tag prefix is added as a new tag on the selected photos
Most of the time this results in the tag being added to the input field of the dialog, which is correct behaviour.
Sometimes and not in a consistent manner, the enter key instead submits the tags entered, including the partially enter tag which is then created.
So if I enter "vene" searching for "Venetian Lagoon", I mostly get "Venetian Lagoon" and the tag dialog doesn't close, but every once in a while I get "vene" and have the tagging dialog closed prematurely and a spurious unwanted tag created.
This doesn't happen consistently, only sometimes.
Sometimes the enter key event is handled by the tag dialog meaning close dialog and add entered tags, while it should be handled by the popdown menu meaning select currently highlighted entry and close menu.
Version: 0.24.x