ed icon indicating copy to clipboard operation
ed copied to clipboard

Handle iOS keyboard dismiss

Open hannesstruss opened this issue 8 years ago • 2 comments

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

hannesstruss avatar Jan 20 '17 12:01 hannesstruss

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.

forresto avatar Jan 20 '17 19:01 forresto

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.

hannesstruss avatar Jan 20 '17 19:01 hannesstruss