Different platforms have different shortcuts to activate different caret navigations, e.g. Home, Command + Left Arrow (on mac), Alt + Left arrow (android) all move the text caret to the start of a line. As far as I can tell, the developer can only see the raw key events and gets no indication that on a particular platform it should perform a particular command. It seems cumbersome for developers to maintain a set of platform specific mappings, and it's possible some platforms may allow developers to customize these.
It should be possible for a developer to implement handlers for these commands when implementing their own editor. This seems like it would most naturally be supported by dispatching these as editing commands to beforeinput.
Different platforms have different shortcuts to activate different caret navigations, e.g. Home, Command + Left Arrow (on mac), Alt + Left arrow (android) all move the text caret to the start of a line. As far as I can tell, the developer can only see the raw key events and gets no indication that on a particular platform it should perform a particular command. It seems cumbersome for developers to maintain a set of platform specific mappings, and it's possible some platforms may allow developers to customize these.
It should be possible for a developer to implement handlers for these commands when implementing their own editor. This seems like it would most naturally be supported by dispatching these as editing commands to beforeinput.