Skip to content

v0.25.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 14:03
· 115 commits to main since this release
5b08d1a

Added

Core

  • EventContext::set_window_string_id gives an open window a new string id,
    for a document window whose file moved (Save As, a restored backup, a project
    switched in place). find_window then finds it under the new id, and its
    saved size and position move to the new id, so it comes back at its size
    after a restart. When another open window was opened with the same old id,
    the old id stays with that window, along with its saved size and position.
    It refuses an id another open window holds
    (WindowStringIdError). WindowOps has a matching method, which answers
    Unsupported unless an implementor provides it.

Changed

Core

  • WindowState::string_id() returns Option<String> instead of
    Option<&str>
    , because a window's string id can now change while it is
    open. Compare with .as_deref() == Some("...").

Widgets

  • A text caret stops blinking, and stays shown, after ten seconds with nothing
    moving it
    , as GTK's does by default. An idle window with a focused text field
    no longer redraws twice a second. Typing, a caret move, a click or coming back
    to the window starts the blink again.

Fixed

Core

  • Pressing a braille routing key on the cell the braille cursor is already on
    no longer moves the caret.
    NVDA then clicks at the top-left of the
    character, rounded down to whole pixels, which was the last pixel row of the
    line above. The caret moved one line up, or from the end of a wrapped line to
    the start of that line. A text's character boxes now start on a whole device
    pixel inside their line.
  • A screen reader hears a line break made with Shift+Enter as a line break.
    The position just before it is announced, and an empty line between two of
    them reads as blank instead of saying nothing. Paragraph navigation in a
    screen reader now also stops at such a break.
  • An overlay narrowed to fit the window, or widened to its anchor, is as tall
    as its content at that width.
    Its height was measured as if nothing
    wrapped, so a modal clamped to a small window cut off its wrapped text.

Widgets

  • A screen reader no longer finds an Accordion's content or its header
    actions inside its header button.
    The content and the trailing controls
    were children of the button, which made a screen reader repeat the header's
    name on entering them, and a button may not contain other controls. They are
    now its siblings, and the button covers the header row only.

  • Space or Enter in a shown Accordion section, or a screen reader's
    activate command on its text (such as a message box's details), no longer
    collapses the section.
    The accordion took every Space, Enter and assistive
    click its content left unhandled.

  • Enter on a message box's "Show details" toggle shows or hides the
    details
    , as Space does. It answered the question with the default button
    and closed the box.

  • A message box's "Show details" text can be reached with Tab once shown,
    read and reviewed by a screen reader, selected and copied. It was a plain
    label that only a screen reader's object navigation reached. The details
    pane is now as tall as its text, up to a dozen lines past which it scrolls,
    instead of a fixed height that left most of it blank under a short error.

  • Down from the line above a table goes into its first row, Down from its
    last row goes to the text after it, and Up into a cell that wraps onto
    several lines lands on its last line
    , in RichTextEditor, also when the
    text has line or paragraph spacing. The caret stayed where it was, so a
    screen reader repeated the line as if the text ended there, and going up
    skipped the lower lines of a wrapped cell.

  • Shift with an arrow key inside a table cell of several paragraphs selects
    text in the cell
    in RichTextEditor. At the start or end of a paragraph
    in the middle of the cell it selected a range of cells instead. Only the
    cell's own edges start a cell selection.

  • After Undo or Redo at a soft wrap, the caret is shown and read on the line
    its text is on
    , not at the end of the line above, in RichTextEditor,
    PlainTextEditor and CodeEditor.

  • On Windows and Linux, Ctrl+Right moves to the start of the next word, and
    Ctrl+Shift+Right and Ctrl+Delete reach it, as in other Windows and Linux
    editors. It stopped at the end of the current word. Option+Right on macOS
    still stops at the end of the word.

  • On Windows and Linux, Ctrl+Up and Ctrl+Down move by paragraph in
    RichTextEditor
    , to the start of the current or previous paragraph and to
    the start of the next one, with Shift extending the selection, as in Word.
    A line break made with Shift+Enter also starts a paragraph for this step, as
    it does for a screen reader, so the lines after it are read. They moved one
    line, so a screen reader read the whole paragraph on every
    press. Inside a table cell the step stops at the cell's edges.

  • After Backspace at a list item's start, or Ctrl+Z / Ctrl+Y of a change that
    adds or removes a list marker, a braille display shows the changed line at
    once.
    It kept the old line until the next key.

  • A MessageBox whose text wraps is as tall as its text, so its buttons sit
    inside it.
    They could hang below the box, where a mouse click closed it as
    Cancel instead of choosing the button. Its text now wraps at the same width
    over the window as in a window of its own.

  • In a masked password field, Ctrl+Left, Ctrl+Right, Ctrl+Backspace and
    Ctrl+Delete treat the hidden text as one word
    , so they no longer give away
    where it has spaces.

  • A screen reader on Windows reads the line the caret is on when it is at the
    start of a wrapped line, in RichTextEditor and PlainTextEditor.
    After
    Down or Home brought the caret there, NVDA read the line above, so a wrapped
    paragraph's first line was read twice and its last line never. The fix in
    0.24.2 moved only one end of the selection, and UIA reads the other.

  • It also reads the right line for a selection starting at a soft wrap and for
    a caret just after a line break
    , where it read the line above. Braille routed
    to the cell after a wrapped line's last character keeps the caret on that line
    instead of moving it to the next.

  • Left, Right and Backspace stop at the first character of a wrapped line in
    RichTextEditor, PlainTextEditor and a wrapping CodeEditor. Left went from
    the second character straight to the end of the line above, so the first was
    never reached, and Backspace and Delete left the caret on the line above.
    Right from the end of a wrapped line now goes to the start of the next line.

  • Left and Right with a selection go to its start and its end in those editors
    and in every text field. They moved one character from the caret, which could
    leave it inside the selected text.

  • Undoing or redoing a format in RichTextEditor shows on screen and counts as
    a change.
    Taking back bold left the word painted bold and the format state
    stale, and did not fire on_change, so an app saving on change wrote nothing.
    Undoing a change to a list was the same: the screen and a screen reader kept
    the old structure until the next typed letter. Teksilo now needs text-document
    1.16.1.

  • A picture in RichTextEditor no longer stays blank. When the first frame
    to paint it never reached the renderer, its pixels were lost, and it took up
    its space and painted nothing for as long as the editor lived.

Full Changelog: v0.24.2...v0.25.0