GNOME Bugzilla – Bug 765221
Pressing the delete key while editing the Notes column of an account attempts to delete the account
Last modified: 2018-06-29 23:48:36 UTC
If you have the Notes column on the Accounts page enabled, and you are typing edits into an account's notes, if you press the delete key, GnuCash attempts to delete the account, instead of deleting the character to the immediate right of the cursor. Backspace works normally as expected, however.
Created attachment 335509 [details] [review] Change short cut key on Accounts page. Had a look at this one and it is down to delete key being the short cut for 'Delete Account' on the main menu. This happens on the code, description and notes fields when they are being edited. This patch changes the short cut to <control>d. Bob
While that fixes it, it strikes me as a bit of a hack. When viewing all accounts, the delete key should bring up the window to delete an account. The issue is that shortcut keys shouldn't be active while editing the notes field or other text fields.
In other words what goes wrong is that either - the short cut takes precedence over a keystroke in a text field or - the text field handles the delete key stroke but passes it on These are gtk related characteristics. I'm not sure gnucash has control over these.
This appears to be a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=616709 (I assume "Notes" actually means "Description" in this bug report.)
(In reply to Milan Knizek from comment #4) > This appears to be a duplicate of > https://bugzilla.gnome.org/show_bug.cgi?id=616709 > (I assume "Notes" actually means "Description" in this bug report.) It is indeed a duplicate although "Notes" really means "Notes". The issue actually happens in both cases. I had added my thoughts on how this should be fixed in the other bug report, so I will mark this one as the duplicate. Thanks for pointing this out. *** This bug has been marked as a duplicate of bug 616709 ***
Comment on attachment 335509 [details] [review] Change short cut key on Accounts page. As mentioned in the bug comments already, this is a workaround rather than a proper solution. The solution should be do disable the key binding while any cell is in edit mode.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=765221. Please update any external references or bookmarks.