lurkio wrote: ↑Fri Apr 30, 2021 3:04 pmI never use Fn+Left, Fn+Right, Fn+Up or Fn+Down. In TextEdit (the native "built-in" macOs text editor), they don't perform any function.
OK, but I think that probably makes TextEdit an 'outlier'. It's pretty clear from the codes they generate that
Fn+Left,
Fn+Right,
Fn+Up and
Fn+Down are intended to be direct equivalents of the
Home,
End,
PgUp, and
PgDn keys on a standard PC keyboard (and in the case of the first two this is confirmed by Apple themselves
here). You would expect a text editor to respond to those, and my SDLIDE editor does.
Where the complication arises appears to be that Macs and PCs define
Home and
End differently, by default. On PCs Home and End are 'move to the beginning or end of the
line' but on Macs they are 'move to the beginning or end of the
document' (again that is confirmed
here).
So (short of a configuration option, which I really don't like) I'm not going to be able to please everybody, because I want
Home and
End to work consistently in SDLIDE across all platforms. In practice that means I want them to work as they do in Windows (beginning and end of
line) and from the page I linked to it's pretty clear that people who have moved from a PC to a Mac want that too.
So that determines what
FN+left and
FN+right will (and indeed already) do in SDLIDE: move to the beginning and end of the
line. But that leaves some unanswered questions: principally what should
Cmd+left and
Cmd+right do, and what keyboard shortcuts on a Mac should move to the beginning and end of the
document?
For maximum compatibility and minimum irritation one option would be to make
Cmd+left and
Cmd+right do the same as
Fn+left and
Fn+right (even though that feels like a wasteful duplication) and
Cmd+up and
Cmd+down move to the beginning and end of the document.