Bug 121907 - Sidebar: Input fields (especially numbers) are too smart (value checking after each key)
Summary: Sidebar: Input fields (especially numbers) are too smart (value checking afte...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.3 all versions
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Sidebar-Animation
  Show dependency treegraph
 
Reported: 2018-12-04 16:03 UTC by Marcel Waldvogel
Modified: 2021-04-05 12:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Waldvogel 2018-12-04 16:03:07 UTC
Description:
Some entry fields validate their input after every key press and limit the input range. This interferes with the user typing and annoys the user or causes wrong input.

Steps to Reproduce:
1. Select an object in edit mode
2. Go the the animation tab
3. Click on "+" to add a new animation for that object
4. Select "Fade in" as the effect
5. Try to change the duration from the (default) "2.00 sec" to "0.5 sec" by selecting all and then typing "0.5" and hitting return.

Actual Results:
The actual result is "0.55 sec"

Expected Results:
"0.50 sec" (or, even better, "0.50 s", see below)


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This happens because already on typing the first char, "0", the number is changed to "0.50 sec". Not only is this annoying, it also interferes with further typing. 

If I remember correctly, I have also seen this behavior in other fields.

The SI unit for "second" is "s". It would be nice to fix this as well while at it.
Comment 1 Durgapriyanka 2018-12-05 16:22:08 UTC
Thank you for reporting the bug. I can not reproduce the bug in 

Version: 6.1.3.2
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group threaded

It does reproduce the expected results.

As you said, on typing the first char, "0", the number is changed to "0.50 sec". Not only this is annoying, it also interferes with further typing.
Comment 2 Xisco Faulí 2018-12-17 12:28:40 UTC
Reproduced in

Version: 6.3.0.0.alpha0+
Build ID: bdc82e277759a2df68855fce0a3fdd58f9b1ea66
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

and

Version: 5.3.0.0.alpha1+
Build ID: 4136757b4e51c4e6f7cb4132c95538a7f831ef2c
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 3 QA Administrators 2021-04-03 03:46:45 UTC Comment hidden (obsolete)
Comment 4 Marcel Waldvogel 2021-04-05 12:38:13 UTC
The correct-after-each-keypress is no longer present. However, still, weird (non-SI) units ("sec" instead of "s") are used.

Version: 7.0.3.1
Build ID: 00(Build:1)
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: de-CH (en_US.UTF-8); UI: de-DE
Ubuntu package version: 1:7.0.3-0ubuntu0.20.10.1
Calc: threaded