-
Notifications
You must be signed in to change notification settings - Fork 439
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
Livebook cell won't give up the focus to firenvim #1681
Comments
Thank you for the report. We will appreciate if someone can look into this issue and provide a fix. We are glad firenvim is an option but we have little bandwidth to prioritize this issue. |
Hi, thanks a lot for the reply. I understand the situation. Is there any idea which livebook code I can start to look at to fix the issue? |
@jonatanklosko would be the person to provide a pointer. But, just in case, did you check that the issue also does not happen in regular Monaco? |
In insert mode we always make sure the Monaco editor is focused: livebook/assets/js/hooks/cell.js Lines 190 to 196 in 605498a
so the focus goes to the original editor. |
I will go ahead and close this. If someone wants to send a PR though, it is very welcome. We wouldn't mind special casing the focus logic to consider firenvim classes and act accordingly. It should be a small change in theory. :) Thanks! |
Environment
git rev-parse HEAD
if running with mix): 0.8.1Current behavior
Launch firenvim on the cell, but Firenvim doesn't get the focus, so then every event is still sent to livebook cell.
I need to click outside the frame and click the frame again to get the focus.
Expected behavior
Launch firenvim on the cell, the focus would be on firenvim and every event is sent to firenvim instance.
The text was updated successfully, but these errors were encountered: