-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Global hotkeys don't fire #801
Comments
I'll bet it is Monaco capturing the event. Can you try changing the hotkey to "mod+shift+s" and see if that works? |
Tried changing to that, still no luck. I also tried removing monaco and I still had the same issue. 😞 |
Hi @waltonseymour, I'm going to take on this issue this week. Hopefully we can get things resolved by our release on Friday. I'll need some help reproducing your issue. When you have a moment, could you construct for me a minimum viable scenario that manifests the bug you're seeing? We just chatted here in the office, and we suspect there's an issue between our In the meantime, I'll try to poke at our |
Found a repro for this. Adding a event listener on ie.
|
Thanks for that @waltonseymour. Will take a look. |
@waltonseymour Thanks for chatting with me offline. Looks like we can repro now. I've updated the issue description with the steps to reproduce. |
Spoke with @adidahiya. Seems like the solution here is to extend |
Bug report
Steps to reproduce
HotkeysTarget
decorator, define a global hotkey.public componentDidMount = () => { console.log("hello"); }
to that component.Actual behavior
The global hotkey does not trigger as expected. It is also not included in the hotkeys dialog (shown when you press shift + S. This occurs only when we use fat-arrow syntax to define
componentDidMount
; if we express aspublic componentDidMount() {
, everything works as expected.Expected behavior
Global hotkeys defined by a
HotkeysTarget
should work whether or not (and also in whichever manner) acomponentDidMount
is defined.Original issue text
For some reason this setup does not capture command+s at all
But this one does when focused
The page also has Monaco embedded in it which has its own hotkeys, so it might somehow be interfering.
The text was updated successfully, but these errors were encountered: