GnuCash
Contact   Instructions
Bug 797834 - Ctrl+A in account register fields chimes after any element newly focussed
Summary: Ctrl+A in account register fields chimes after any element newly focussed
Status: VERIFIED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Windows (show other bugs)
Version: 4.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: windows
QA Contact: windows
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-30 23:58 EDT by Simon Hollingshead
Modified: 2020-07-21 11:02 EDT (History)
4 users (show)

See Also:


Attachments

Description Simon Hollingshead 2020-06-30 23:58:33 EDT
Gnucash 4.0, Windows 10
I can reproduce this issue in multiple different *.gnucash files and even after closing and reopening the app.
--

Ever since upgrading to GnuCash 4, I've noticed one difference in behaviour which is somewhat irritating for my workflow:

1. Open an account from the account list.
2. Click on any existing transaction with the intent to alter it (e.g. duplicate a transaction to a new date and then focus your typing bar into the 'Deposit' field so that you can change the amount the transaction is for).
3. Press Ctrl+A to select the entire value (so you can type to replace it).

Expected: Value is selected

Actual: Value is selected and windows plays whichever sound is associated with 'Default Beep' in the sound scheme ('Windows Background.wav').  This sound is associated with many events, but I can change Default Beep to another sound and then a different sound will play when I perform these steps.

After the field has been focussed, any subsequent Ctrl+A presses are silent, even if you use the cursor to click within the field (to unselect all and insert a typing bar somewhere in the field) and press Ctrl+A again.

However, if you change field (e.g. from Deposit to Date) then the next Ctrl+A will make the chiming noise again.
Comment 1 Simon Hollingshead 2020-07-01 00:01:31 EDT
If I click once inside any of the register fields, the typing focus is always placed before the first character in the field (no matter where I clicked).  E.g. if I click on the decimal point in a Deposit of "100.07", the the bar will be entered as "|100.07".  When the cursor is in this position, the chiming noise occurs on a Ctrl+A press.

If I left-click a second time first, the typing bar moves to where I clicked (e.g. "100|.17") and at that point Windows will NOT chime if I press Ctrl+A.
Comment 2 John Ralls 2020-07-18 16:52:40 EDT
Thanks for the detailed troubleshooting. This is fixed for 4.1 and will be in tomorrow's nightly.
Comment 3 Simon Hollingshead 2020-07-20 23:56:25 EDT
I installed maint/gnucash-4.0-2020-07-20-git-4.0-101-g8ef370ce8+.setup.exe and attempted to reproduce the problem.

- Focussing a field now enters the typing bar in the correct position for where I clicked.
- Pressing ctrl+A in such a field does not chime, unless the field is empty (in which case I accept that ctrl+A is not a valid thing to press).

Verified fixed.
Comment 4 John Ralls 2020-07-21 11:02:21 EDT
It will still chime if you put the cursor at the beginning of the string. That behavior is hard-coded into GtkEntry.

Note You need to log in before you can comment on or make changes to this bug.