Make on-canvas text settings behavior more intuitive
@asmodis
Submitted by Simon Müller Link to original bug (#793516)
Description
Currently, the on-canvas text settings box is kind of counter-intuitive when no text is selected.
Behavior when text is selected: Everything works as expected, all settings are applied to the selected text.
Behavior when no text is selected: The buttons for text styles (bold, italic, ...) can be pressed and the selected style is applied to all text that is typed from the current position. This does also work as I would expect it.
Now to the first thing that only works in parts: It is possible to select a new font but since the font input box does not lose focus after a valid font was selected, you have to manually focus the text layer again (otherwise you just keep typing into the font selection box). If you do this with the mouse, the font selection is reset to what it was before. Alternatively you can focus the text layer with multiple presses of the tab key, which preserves the font selection as you would expect.
For the font size, it is exactly the same as for the font selection: mouse click resets the setting, tab preserves it.
For the two numeric selection fields below the font size settings, none of the two methods of bringing the text layer back to focus works. You lose your new settings either way.
This seems to overlap with bug 683011, it looks like the behavior for the text size selection was fixed there but the fix was not applied to the other numeric input fields.
I think that there are a few things that could help to make the on canvas settings a bit more intuitive to use:
1.: Make the enter key confirm the modified setting and refocus the text layer. It is kind of counter-intuitive to 'confirm' with the tab key.
2.: For the font selection box, automatically return focus to the text layer if you click on a font from the drop-down that appears once you start typing into the box.
-
Immediately refocus the text layer if one of the numeric settings was changed via the up or down button. Currently the use of the up or down button focuses the text area of the corresponding numeric input. This is unnecessary since I just changed the value via the button. If I wanted to change the value via keyboard, I would click into the text box. This is my personal preference so feel free to ignore that one :P
-
Don't always reset the font settings to the settings at the current cursor position when clicking into the text layer. If the new cursor position is the same as the old one, keep the new settings and use them for new text.
Version: 2.8.22