Refocus to Object After Pressing Return into a Number Entry

Summary:

We can't switch between number entries and other actions until a mouse clicking over the desired UI section.

Steps to reproduce:

This can be reproduced with any number's entry, but I selected that dialog because I want to show you how much stressing can it be:

  • Open Inkscape.
  • R and make two rectangles of different colors.
  • Select any of them.
  • Ctrl + Shift + F and switch to stroke width.
  • Click on the entry, write a number, then Enter.
  • Press D to select the color of the other rectangle.
  • Click on canvas.

Imagine this situation with a lot of objects, colors, strokes, and every number's entries.

What happened?

A "d" letter was written into the entry.

What should have happened?

Option 1: Focus should be set to the object after Enter. Option 2 (the logical): If it's a number entry, no Numpad-Unrelated keys (Non +, -, *, /, 0-9) should be able to be written.

Option-Independent Result: The tool should be switched to Color Picker

Version Info:

- Inkscape Version: 1.0 (4035a4fb49, 2020-05-01).
- Operating System: MX Linux
- Operating System version: 19.2