micro-editor / micro-editor/micro

Cannot execute multiple keyboard shortcuts with the control key held down

Open
#3,701 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

It seems that I have to release the Control key after Ctrl+S, before being able to use another Ctrl+Key shortcut. This seems to happen only if the first command is Ctrl+S, but regardless of what command comes after.

Observed behavior:

Pressing Ctrl+S, then Ctrl+Q saves the file, then writes a q at the cursor position, if the Control key is not released between both commands.

Expected behavior:

Pressing Ctrl+S, then Ctrl+Q should save then exit, regardless of whether the Control key was released or not.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the sequence in a terminal: press Ctrl+S, then Ctrl+Q without releasing Control, and compare it with the released-key behavior. Trace the editor's keyboard shortcut handling to find where Ctrl+Q becomes a literal q after Ctrl+S; done means both shortcuts execute in sequence without releasing Control.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.