-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't bring up input menu #1895
Comments
This seems related to this: |
Not very familiar with the different input methods for emojis on macOS, but this might also be related to #1751. There have been a few IME issues with the window library we're using, so potentially that's just something that's not supported yet. Though foreign languages seem to work fine, at least the input popup itself. |
@chrisduerr basically Ctrl + Command + Space brings up an input menu. It defaults to emoji but it can be used for any non-standard English character. The issue #1751 seems similar, but that is talking about a third-party app, Rocket. I'm talking about native macOS stuff. Out-of-the-box, Ctrl + Command + Space brings up the input menu on macOS. |
@chrisduerr also FWIW, I'm a Rust newbie, but I'm totally willing to contribute where I can. I've recently started using Alacritty and therefore filed several issues as a result. But if I can give back in any way I'm down. 😄 |
This implements a call to OSX's `orderfrontcharacterpalette()`[1] which is the aptly named function to display the standard on-screen keyboard for choosing emjoi and of characters. Similar functionality exists in an undocumented and unexported function[2] in the `winit` crate. A cleaner solution is to plumb this command through the crates dependencies and avoid the additional explicit dependencies on Objective-C macros in this crate. Fixes alacritty#1895 1 https://developer.apple.com/documentation/appkit/nsapplication/1428455-orderfrontcharacterpalette?language=objc 2 https://github.com/rust-windowing/winit/blob/master/src/platform_impl/macos/util/mod.rs#L121-L124
I spent some time to track this down. Not being familiar with macOS either it took a bit of digging to find I've submitted a draft PR #3561 to implement this feature. |
This implements a call to OSX's `orderfrontcharacterpalette()`[1] which is the aptly named function to display the standard on-screen keyboard for choosing emoji and of characters. Similar functionality exists in an undocumented and unexported function[2] in the `winit` crate. A cleaner solution is to plumb this command through the crates dependencies and avoid the additional explicit dependencies on Objective-C macros in this crate. Fixes alacritty#1895 1 https://developer.apple.com/documentation/appkit/nsapplication/1428455-orderfrontcharacterpalette?language=objc 2 https://github.com/rust-windowing/winit/blob/master/src/platform_impl/macos/util/mod.rs#L121-L124
Chris, thanks for looking at this and providing quick feedback in the PR.
Agreed that its an unexpected implementation. (I spent a few hours last weekend reading through the macOS input methods documentation and getting nowhere. It turns out the implementation is in an entirely different place...) I feel like this is a feature similar to support for If the implementation complexity is hidden internally to glutin/winit would you be okay with adding the necessary keybinding support? |
I'm not completely against adding it yet, though I do find it very questionable and it seems like an annoying platform specific detail which always leaves a bit of a bitter taste in my mouth. I feel like ideally this would work through the IME interfaces of the platform, extending the existing input with additional options like Emojis. So my main question would be if it is possible to do so. If there's a reasonable workaround that works in a more platform independent and sensible fashion, I'd be inclined to advocate for that rather than adding a platform specific workaround. |
Sounds good (the approach, not the bitter taste. With full pun intended.... 🤮) I'll see what I can find. |
I just hit this and agree that it is quite jarring. My current work around is to focus an input in another window, select the emoji, copy it, then paste it. I've done a little digging and it looks like Update: I thought I remembered alacritty using winit, but can't find it now 🤷🏼♂️ |
@voldemortensen, I tried digging a bit further in macOS's input method support, but haven't found any promising leads beyond |
Just switched to Alacritty on Mac, and this is something I'm already missing. Always select emoji using Ctrl + Command + Space 😢 |
Hi! Is there any workaround for this issue? I really use the emoji picker a lot for symbols and greek letters. |
Same for me. This is an important feature which Alacritty seems to be missing right now in my opinion. And having to browser Emojipedia in order to find the emoji I'm looking for and copy-paste it into Alacritty isn't a viable solution. |
This would be nice to have |
This implements a call to OSX's `orderfrontcharacterpalette()`[1] which is the aptly named function to display the standard on-screen keyboard for choosing emoji and of characters. Similar functionality exists in an undocumented and unexported function[2] in the `winit` crate. A cleaner solution is to plumb this command through the crates dependencies and avoid the additional explicit dependencies on Objective-C macros in this crate. Fixes alacritty#1895 1 https://developer.apple.com/documentation/appkit/nsapplication/1428455-orderfrontcharacterpalette?language=objc 2 https://github.com/rust-windowing/winit/blob/master/src/platform_impl/macos/util/mod.rs#L121-L124
iterm2 seems to have a solution for this. I agree that it is jarring to not have this. |
it was a big enough issue for me to pullin pr #3561 and rebase the current git master on top it. now i have emoji context menu. https://github.com/ipatch/alacritty/tree/pr3561.ipatch.exp01 |
dang, but the PR was closed :( |
This implements a call to OSX's `orderfrontcharacterpalette()`[1] which is the aptly named function to display the standard on-screen keyboard for choosing emoji and of characters. Similar functionality exists in an undocumented and unexported function[2] in the `winit` crate. A cleaner solution is to plumb this command through the crates dependencies and avoid the additional explicit dependencies on Objective-C macros in this crate. Fixes alacritty#1895 1 https://developer.apple.com/documentation/appkit/nsapplication/1428455-orderfrontcharacterpalette?language=objc 2 https://github.com/rust-windowing/winit/blob/master/src/platform_impl/macos/util/mod.rs#L121-L124
FYI, I've taken amazing work of @nholstein and merged that on top of current main. I know this is not to be merged, but I wanted an up-to-date "workaround". https://github.com/kgadek/alacritty/tree/emoji-picker edit: Somehow I missed @ipatch's prior work, oops :( I use this feature to insert various unicode characters: greek letters, arrows, etc. Hope a proper fix will land soon |
Is it possible to start a bounty? This thread seems to have stalled. |
I agree that this is very jarring and a strange experience in an app that claims to "support macOS". |
(i switched to ChromeOS over this issue...) |
There's now an open issue for winit on this: rust-windowing/winit#3342 |
On macOS the keyboard shortcut to bring up the Input Menu to be able to use emoji, math symbols, etc, doesn't work. The keyboard shortcut is Ctrl + Command + Space.
The text was updated successfully, but these errors were encountered: