ed
ed copied to clipboard
Handle iOS keyboard dismiss
Original issue: https://github.com/the-grid/iOS/issues/604
@forresto do you get iOS keyboard events? Would be cool if we could trigger URL sharing on keyboard dismiss. Also, in the first place, do you think it would make sense to do so?
cc @Eke
The way that it is implemented isn't an event listener, more like middleware (?) on the ProseMirror action flow: https://github.com/the-grid/ed/blob/3f5c1be9c983b0eb0d1efbb40f5aef6fa18fa5b6/src/plugins/share-url.js#L48
It could be done though. Need to do something similar with Android composition events and the ¶ empty block style plugin.
Have you considered a menu item & native input to paste a URL? I should add that.
Have you considered a menu item & native input to paste a URL? I should add that.
Could do – but @webbjordy has a point, behavior should be similar to what people are used from webapp.