Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

On Mac, text selection keyboard shortcuts aren't all working (like Cmd+A)

Open Keavon opened this issue 11 months ago • 2 comments

In text fields, Cmd+A doesn’t work to select all text and Shift+Option+Up/Down arrow key doesn’t select from the text cursor’s position to the start/end of the line (however these do work: Shift+Option+Left/Right does select word-by-word, and Option+Up/Down does jump the text cursor to the start/end of the line without selecting); this works on web

Keavon avatar Dec 22 '25 13:12 Keavon

hi, can i work over this issue

Mayank7Bisnewar avatar Mar 21 '26 12:03 Mayank7Bisnewar

@Mayank7Bisnewar Sure, just be aware that this is not a all beginner friendly. The main thing that is holding this back is that all obvious fixes break workarounds we have to do for the Menu to not cause duplicate Keyboard events. Will likely involve diving deep into mac APIs and winit.

see https://github.com/GraphiteEditor/Graphite/blob/d5d10fe54874e9874fda5c6fdf528eecb8be3f44/desktop/src/cef/input.rs#L114 https://github.com/GraphiteEditor/Graphite/blob/d5d10fe54874e9874fda5c6fdf528eecb8be3f44/desktop/src/window/mac/menu.rs#L29 https://github.com/GraphiteEditor/Graphite/blob/d5d10fe54874e9874fda5c6fdf528eecb8be3f44/desktop/src/window/mac/app.rs#L13

timon-schelling avatar Mar 21 '26 12:03 timon-schelling