Skip to content

Conversation

LoganBrinsmead
Copy link

Issues

closes #1904

Description

This change adds a hotkey that corrects the last incorrect word as well as an option to change the hotkey in the settings menu.

To change the hotkey, click the "Modify Hotkey" button which will then listen for your hotkey change and display it in the textarea next to the button. To be abundantly clear, this is a WIP PR so far and should not be merged as there are still some issues to iron out.

Demo

Screenshot of the new option in the settings menu:
Screenshot from 2025-09-26 13-27-29

How Has This Been Tested?

Tested in blank.page where the hotkey is confirmed to correct the last incorrect word. Tests in other textboxes (like the one on Github) show that it does not yet work for rich text editors.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

return resp.hotkey;
}

async function setActivationKey(key: ActivationKey) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seem like there's some overlap between your work and my previous attempt with the "Activation Key" stuff. I prefer your implementation, so feel free to remove anything related to the "Activation Key" as a part of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hotkey improvements

2 participants