Skip to content

Editor area doesn't follow CMD+Backspace behavior on MacOS #13748

@olehomelchenko

Description

@olehomelchenko

Issue Summary

On MacOS, I have a habit of using CMD+Backspace keyboard shortcut whenever I want to delete a whole line of text in the editor up to the beginning of the line.

As far as I know, this is a default behavior in any edit field in any app that I use on MacOS.

However, in Ghost editor mode, when I press CMD+Backspace, only the last character gets deleted.

This behavior can be observed in latest versions Chrome and Firefox

Steps to Reproduce

  1. In the Ghost Posts admin page, click on "New Post" plus sign
  2. Focus on "post body" area below "Post Title" input
  3. Enter several letters or words in the area.
  4. Press CMD+Backspace

Expected behavior: whole text in current line gets deleted
Actual behavior: only the last character gets deleted

CleanShot.2021-11-16.at.00.48.13.mp4

Ghost Version

1.18.0

Node.js Version

14.18.1

How did you install Ghost?

Via the CLI on Ubuntu (DigitalOcean)

Database type

MySQL 8

Browser & OS version

Chrome 95.0.4638.69, Firefox 94.0.1

Relevant log / error output

No response

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlyhelp wanted[triage] Ideal issues for contributors to help withstale[triage] Issues that were closed to to lack of traction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions