Bug 445250 - Resize Dialog: Focus should be on pixel dimensions 'Width' field by default
Summary: Resize Dialog: Focus should be on pixel dimensions 'Width' field by default
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Unclassified
Component: Usability (show other bugs)
Version: 4.4.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 07:42 UTC by Jan Thomä
Modified: 2021-11-10 08:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Thomä 2021-11-10 07:42:10 UTC
SUMMARY
When you try to resize an image using 'Image' -> 'Scale Image To New Size' by default the focus is on the OK button. This means to enter the new size you either need to click the 'Width' field with the mouse or need to press TAB key three times to select the 'Width' field. When resizing images with this dialog in the overwhelming majority of cases you will want to change the pixel size so it would be nice if the 'Width' field would have focus by default. This would work a lot nicer with a keyboard-focused workflow: Press Ctrl+Alt+I, enter the new dimension, press Enter -> Done.

STEPS TO REPRODUCE
1.  Open any image.
2.  In the menu select 'Image' -> 'Scale Image To New Size' or press Ctrl+Alt+I
3. Resize dialog opens.

OBSERVED RESULT
The 'OK' button has focus by default.

EXPECTED RESULT
The 'Width' field in the 'Pixel Dimension' section has focus by default.

SOFTWARE/OS VERSIONS
Windows:  10
Comment 1 Halla Rempt 2021-11-10 08:15:00 UTC
Git commit 4588d993baad1c66af5e7b7c1c24f626ed9c70e4 by Halla Rempt.
Committed on 10/11/2021 at 08:13.
Pushed by rempt into branch 'master'.

Set focus on the first widget in the dialog instead of the ok button
Related: bug 444806

M  +2    -0    libs/ui/imagesize/dlg_imagesize.cc

https://invent.kde.org/graphics/krita/commit/4588d993baad1c66af5e7b7c1c24f626ed9c70e4
Comment 2 Halla Rempt 2021-11-10 08:15:25 UTC
Git commit 3b5eb4e6a3845907f782239cd60f5e09a32ae42a by Halla Rempt.
Committed on 10/11/2021 at 08:15.
Pushed by rempt into branch 'krita/5.0'.

Set focus on the first widget in the dialog instead of the ok button
Related: bug 444806
(cherry picked from commit 4588d993baad1c66af5e7b7c1c24f626ed9c70e4)

M  +2    -0    libs/ui/imagesize/dlg_imagesize.cc

https://invent.kde.org/graphics/krita/commit/3b5eb4e6a3845907f782239cd60f5e09a32ae42a
Comment 3 Jan Thomä 2021-11-10 08:35:11 UTC
Wow that was quick! Thank you very much!