Skip to content

Linux: Counter intuitive keyboard shortcuts on the closing without saving modal #325

Description

@my-opencode

Platform:

Ubuntu 24.04.2 LTS (gnome/wayland)
Ryzen 7 PRO 5850U

Version:

edit-1.0.0-x86_64-linux-gnu

Issue:

When closing the editor with an unsaved buffer, on the modal prompting to "Save", "Don't Save" or "Cancel". The user cannot move focus from the Save option to another using the keyboard. Only the mouse cursor can click another option.

The working keyboard options are

  • Enter to save
  • Press "n" for "Don't save"
  • Escape to dismiss or "Cancel"

Those options are counter intuitive especially without visual hint to the "n" shortcut.
Those options are inconsistent with the rest of the GUI.

Steps to reproduce:

  1. Download the x86_64 version from the release page.
  2. Unzip
  3. Add execute permission
  4. Run the executable from the terminal
  5. Type some text
  6. Quit the editor with the "File>Close Editor" menu option or with the "Ctrl+q" shortcut
  7. On the popup, notice how common selection keys (arrow keys, tab key) do not move the cursor highlight. Notice how no letter is underlined to indicate a shortcut exists.

Expected behavior:

The arrow keys (left & right) or the tab key should move the highlight on the modal and enable the user to select an option with enter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions