Skip to content

Ctrl/Cmd+W should not close Arduino IDE if arduino-close got reconfigured #2737

Open
@hasselmm

Description

@hasselmm

Describe the problem

There should be an option to make Arduino IDE not close the entire sketch when pressing Ctrl/Cmd+W.

I fully understand and accept the reasoning giving in #275, to not change this behavior by default. This is okay, I am fine with that.

Still I am asking for an option to disable this behavior.

Rationale

  • There already is an arduino-close action for closing the IDE, which can be reconfigured.
  • Ctrl+W is a key binding commonly used in a huge number of other programs to close the current document. This causes some kind of muscle memory, letting you automatically press Ctrl+W once done with a task. In most other programs this simply closes the current documents, finishes the task, cleans up your "desk". In Arduino the entire program closes and you have to spent significant time on restarting the IDE an restoring your last working state. This breaks the flow. This is highly annoying. This is unnecessary friction. It is torture.
  • Don't be so cruel and torture your users who are that "crazy" to you other applications besides Arduino IDE!

Proposed Solution

Remove any explicit keybindings to Ctrl/Cmd that override the IDE's action binding system, and make the action binding system do its proper job.

To reproduce

  • open the key-bindings editor
  • search for Ctrl-W
    Screenshot: Search for Ctrl-W
  • change all bindings using Ctrl-W
    Screenshot: Remove all Ctrl-W
  • switch to a document
  • press Ctrl-W

IDE closes.

Expected behavior

The IDE should not close as there is no single keybinding justifying this behavior. This is a bug!

Arduino IDE version

Version: 2.3.7-nightly-20250608 Date: 2025-06-08T03:33:49.254Z

Operating system

Linux

Operating system version

Linux Mint 22 Wilma

Additional context


Keywords

  • "keybinding"

  • "key binding"

  • "hotkey"

  • "hot key"

  • "accelerator"

  • "key combination"

  • "key sequence"

  • "key chord"

  • "shortcut key"

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions