You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One interesting thing to note is for alacritty/alacritty#1336, this might be working as intended? When I run the multiwindow example, <CMD-`> correctly cycles me through the open windows. I say "correctly," because this is normal macos app behavior.
Since <C-TAB> and <CMD-.> is sort of application dependent behavior, I guess winit should just pass these key events through to the consuming application.
But for <CMD-`>, I'm not sure, since this is standard app/window behavior. Should winit just handle this? Should it be default behavior with an option to opt out from an application?
I'm generally in favor of winit conforming to the conventions of the platform, which would entail letting the OS handle <CMD-`>. The only reason winit could previously override it was because our keyboard handling was overtly non-standard.
But it doesn't fix the <Cmd-.> issue. But I did find this, which appears to be addressing the same issue. I haven't quite figured out how to port this over yet, but I'm working on it.
Activity
sodiumjoe commentedon Aug 11, 2018
just confirmed these all started with #518 by
git bisecting.sodiumjoe commentedon Aug 11, 2018
One interesting thing to note is for alacritty/alacritty#1336, this might be working as intended? When I run the
multiwindowexample, <CMD-`> correctly cycles me through the open windows. I say "correctly," because this is normal macos app behavior.Apparently
<CMD-.>is used for cancel (though I can't find official documentation for that anywhere), and<C-TAB>is Move to the next control when a text field is selected .Since
<C-TAB>and<CMD-.>is sort of application dependent behavior, I guess winit should just pass these key events through to the consuming application.But for <CMD-`>, I'm not sure, since this is standard app/window behavior. Should winit just handle this? Should it be default behavior with an option to opt out from an application?
francesca64 commentedon Aug 11, 2018
I'm generally in favor of winit conforming to the conventions of the platform, which would entail letting the OS handle
<CMD-`>. The only reason winit could previously override it was because our keyboard handling was overtly non-standard.sodiumjoe commentedon Aug 13, 2018
@francesca64 So would you consider alacritty/alacritty#1336 a
wontfixthen? (I think that's a reasonable position.)francesca64 commentedon Aug 13, 2018
Yes. Even if I weren't against it conceptually, the potential fix is unreasonably convoluted.
sodiumjoe commentedon Aug 14, 2018
So I found this, which in my testing appears to fix the
<C-Tab>issue:before:
after:
But it doesn't fix the
<Cmd-.>issue. But I did find this, which appears to be addressing the same issue. I haven't quite figured out how to port this over yet, but I'm working on it.sodiumjoe commentedon Aug 14, 2018
#629
sodiumjoe commentedon Aug 14, 2018
that branch fixes
<C-Tab>and<Cmd-{key}>release, but not<Cmd-.>.sodiumjoe commentedon Aug 15, 2018
Interestingly, with
<Cmd-.>, it's the keydown that's suppressed and the keyup that fires. Unfortunately, the same trick doesn't seem to work:the
printlnfires, but the key event does not.sodiumjoe commentedon Aug 15, 2018
Ok, added special handling for
<Cmd-.>that appears to work.Early implementation of IME