UI not updated immediately when toggling some text styling.
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(Not tracked)
People
(Reporter: henry-x, Unassigned)
References
Details
Steps to reproduce
- Open a new HTML message composition.
- Hit Ctr-T, or select through the menu "Format > Text Style > Fixed Width".
Result
The UI is not updated to show the change. The expected UI changes only occurs after typing in the message or re-clicking once in the same position.
The same problem happens when toggling "Fixed Width" off.
Note that the UI is updated immediately if the style is toggled whilst some text is selected.
Expect
As soon as the "Fixed Width" style is selected, the font selector should show "Fixed Width", and if I open the "Format > Text Style" menu, "Fixed Width" should be checked. When it is unselected, this should be reversed.
Discussion
The problem happens for:
- Fixed Width
- Nonbreaking
- Emphasis
- Stronger Emphasis
- Citation
- Abbreviation
- Acronym
- Code
- Sample Output
- Variable
You can verify this by opening the Text Style menu, selecting one, and reopening the menu and there is no visible change.
The following have the expected behaviour:
- Bold
- Italic
- Underline
- Strikethrough
- Superscript
- Subscript
One pattern I noticed was that the <command>
for the ones that work use doStyleUICommand
, whilst the rest use goDoCommand
.
Reporter | ||
Comment 1•3 years ago
|
||
There are similar problems with the UI not updating for the toolbar font selector:
- Checking the the
Fixed Width
,Code
orSample Output
(without no text selection), the toolbar font selector should show theFixed Width
font, but this only shows after typing a character. - Selecting a font through the
Format -> Font
menu (with or without a text selection), the toolbar font selector will not change. Even after typing a character or reselecting on the same section of text.
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Henry Wilkes [:henry] from comment #1)
- Selecting a font through the
Format -> Font
menu (with or without a text selection), the toolbar font selector will not change. Even after typing a character or reselecting on the same section of text.
Moved to Bug 1718225
Reporter | ||
Comment 3•3 years ago
|
||
(In reply to Henry Wilkes [:henry] from comment #1)
- Checking the the
Fixed Width
,Code
orSample Output
(without no text selection), the toolbar font selector should show theFixed Width
font, but this only shows after typing a character.
Similarly, when selecting from the font "Fixed Width" to a different font (with no text selection), the Format -> Text Style -> Fixed Width
menu item will still be checked. This becomes unchecked (as expected) only when typing another character.
Reporter | ||
Comment 4•2 years ago
|
||
NOTE: There are commented out test lines that can be uncommented when this is fixed https://searchfox.org/comm-central/search?q=1716840&path=&case=true®exp=false
Description
•