| Description: |
Hi Marc,
using latest mac_styles branch on macOS11.1
I'm currently working on an undo/redo mechanism for my app (which works great :)) and I've decided to publish them in an Edit menu (before that work I didn't have an Edit menu for my app...).
So, in my new Edit menu, there's my undo/redo and (published by macOS) an Emoji menu and 'Start dictation' menu.
I've tried them when editing ttk::entry and wooooow it's working great :)
I can insert Emoji 👍🏽 and dict text with my voice 😍
so first, very thank you for the constant improving of Tk !!
now my request, when inserting Emoji would it be possible to have them displayed in the touchBar?
for example, in TextEdit, there's a little smiley in the touchBar and if I click on it, recently used Emoji + others appears in the touchBar.
would it be also possible for Tk?
best regards,
nicolas
|
| User Comments: |
marc_culler (claiming to be Marc Culler) added on 2020-12-16 14:16:00:
The menus for entering emojis are provided by the OS. To enable them
Tk implements the NSTextInputClient protocol, which consists of various
callback methods used when displaying the menus and entering text.
It is possible that the menu in the touchBar is also provided by the OS
but I don't see any reference to the touchBar in the Apple documentation
for NSTextInputClient. If there is a callback that needs to be
implemented to make OS generate the touchBar menu, then we could try to
add that. But if Apple does not document it then I have no idea where to
start.
It is also possible that TextEdit includes its own special code to
generate the touchBar menu only for itself. Who knows?
|