GnuCash
Contact   Instructions
Bug 796883 - Register text oddities
Summary: Register text oddities
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Register (show other bugs)
Version: 3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-04 13:02 EDT by Christopher Lam
Modified: 2018-12-16 19:36 EST (History)
6 users (show)

See Also:


Attachments

Description Christopher Lam 2018-10-04 13:02:34 EDT
Ok this seems to reliably reproduce on my end - v3.3 on Windows release, or maint on Ubuntu

1. Go to a normal register
2. Tab to description, enter one previously-used description (important)
3. Tab out to debit/credit amount column - notice the amount previously associated with description is preloaded (nice) and selected, waiting to be overwritten
4. Hit 'CTRL' or 'ALT'
5. Notice the selection text is now amended in a random manner.

There are other triggers too - I'm trying to amend description by using standard keys CTRL-LEFT/RIGHT CTRL-V to paste too, and suddenly part of description is not deletable anymore.
Comment 2 Christopher Lam 2018-10-27 20:41:39 EDT
Better behaved (left/right now works) but still present.
1. TAB to Description cell
2. Type a few letters from a previously used Description
3. TAB: cursor goes to the amount cell
4. Press SHIFT/CTRL etc - selection changes randomly
Comment 3 John Ralls 2018-10-28 01:09:07 EDT
I can't replicate that.

Consider that the selection in the description field is marked by the cursor position, which will be after the letters you entered and the end. E.g. if you typed in "abc" the selection would be 3 to the end.

With that in mind is the selection in the debit/credit field really random or is it between the same starting point (3 in the e.g.) and the end of the pre-existing value? After that selection appears is it constant or does it change when you press a modifier key again?

If you press an arrow key or even a modifier key (shift, ctrl, alt) before tabbing out of the Description cell do you
Comment 4 Christopher Lam 2018-10-28 03:13:19 EDT
^ This is a good guess; not random at all

1. TAB to Description cell
2. Type a few letters from a previously used Description - eg "Gr" (for Groceries)
3. TAB: cursor goes to the amount cell - say the previous amount was "202.10" -- whole "202.10" is selected
4. Press SHIFT/CTRL/ALT etc - selection skips first 2 chars of the 202.10 - 20"2.10"

If I typed "Gro" selection skips 3 chars 202".10" when pressing SHIFT/CTRL/ALT
If I typed "Groc" selection skips 4 chars 202."10" instead

--

Pressing <ARROW> <HOME> or <END> before tabbing out of description first does *nothing*, but on pressing again, seems to work.
Comment 6 Terry M 2018-10-29 11:51:42 EDT
Seems to have worked. At least the CTRL-V/CTRL-C is working.
Comment 7 John Ralls 2018-10-29 16:57:09 EDT
OK, pushed. It will be in tomorrow's nightly should you want something more official.
Comment 8 Christopher Lam 2018-10-29 21:22:29 EDT
All good, thank you
Comment 9 Christopher Lam 2018-11-09 10:55:09 EST
Another case for current maint 9-Nov-2018

1. Say there are previous Description e.g. "Groceries"
2. Enter another transaction, start typing "Gro"
(result = "Gro"ceries)
3. Press <END> or <HOME> to try move cursor to end/start of field (nothing happens)
4. Press <END> or <HOME> to actually move to end/start of field (this works)
Comment 10 Christopher Lam 2018-11-09 10:55:42 EST
Another case for current maint 9-Nov-2018

1. Say there are previous Description e.g. "Groceries"
2. Enter another transaction, start typing "Gro"
(result = "Gro"ceries)
3. Press <END> or <HOME> to try move cursor to end/start of field (nothing happens)
4. Press <END> or <HOME> to actually move to end/start of field (this works)
Comment 11 John Ralls 2018-12-16 19:36:18 EST
They needed to be added to the cursor-key handling block in gnucash_sheet_key_press_internal().

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