Fix panic when deploying emoji picker (character palette) (#3790)

The panic was caused by Cocoa synchronously invoking the
`selected_text_range` method on the registered input handler while we
already had a borrow of the app.

This pull request fixes this issue by showing the character palette on
the next tick of the loop (we've had this problem in other spots too and
used the same technique).

Release Notes:

- N/A
c34a81152fAntonio Scandurra committed on 12/22/2023, 5:52:35 PM· committed by GitHubparents7ef2ddd9a6688b
1 file changedLine totals unavailable