Skip to content
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

Web: desktop-reserved keybindings non functional in fullscreen Firefox #83343

Open
bpasero opened this issue Oct 26, 2019 · 5 comments
Open

Web: desktop-reserved keybindings non functional in fullscreen Firefox #83343

bpasero opened this issue Oct 26, 2019 · 5 comments
Assignees
Labels
firefox Issues running VSCode in Web on Firefox upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Oct 26, 2019

Maybe we cannot get this to work, but: when I use Firefox and go fullscreen, hitting a key such as Cmd+W to close an editor is still closing the entire window. That makes it almost impossible to use VSCode in Firefox.

To make matters worse: simply pressing Esc-key gets out of fullscreen instantly....

@bpasero bpasero added web Issues related to running VSCode in the web firefox Issues running VSCode in Web on Firefox labels Oct 26, 2019
@bpasero bpasero self-assigned this Nov 4, 2019
@bpasero bpasero added this to the November 2019 milestone Nov 4, 2019
@bpasero
Copy link
Member Author

bpasero commented Nov 4, 2019

I think we should investigate for November to see what is missing here.

@rebornix where is the code that checks for being able to bind all our commands?

@rebornix
Copy link
Member

rebornix commented Nov 5, 2019

At this moment we only bring back all keybindings when navigator.keyboard exits.

But based on my current testing, it seems if in Full Screen Mode, we can actually receive most of the keyboard events in Safari, but not Firefox. The code is

if (browser.isFullscreen()) {
keyboard.lock(['Escape']);
} else {
keyboard.unlock();
}
. I'll play with both browsers and see how to make it work. At least for now, I didn't see a plain simple solution for Firefox.

I'm also wondering whether it's because I upgraded to Catalina as previously, Keybindings in Full Screen in Safari doesn't seem to work. I need to double check.

@rebornix rebornix changed the title Web: keybindings non functional in fullscreen Firefox Web: keybindings non functional in fullscreen Firefox/Safari Nov 5, 2019
@rebornix rebornix added the safari Issues running VSCode in Web on Safari label Nov 5, 2019
@bpasero
Copy link
Member Author

bpasero commented Nov 5, 2019

At least for now, I didn't see a plain simple solution for Firefox.

Yeah, Firefox seems really hard to get working. No matter what, in fullscreen a simple ESC press exits fullscreen...

I'm also wondering whether it's because I upgraded to Catalina as previously, Keybindings in Full Screen in Safari doesn't seem to work. I need to double check.

If I disable the code in keybindings.ts that requires navigator.keyboard, I can get e.g. Cmd+N to work in Safari when I am in fullscreen mode. I am on macOS 10.14.6. Maybe we should be less strict and not require navigator.keyboard for our logic?

@rebornix
Copy link
Member

rebornix commented Nov 5, 2019

Maybe we should be less strict and not require navigator.keyboard for our logic?

I think so, I relaxed it a bit in #83957.

Update
For Firefox, currently it's not possible to override browser keybindings by any means as a web app, due to https://bugzilla.mozilla.org/show_bug.cgi?id=380637 (100 page long, 13 years old discussion).

The keybinding experience can only be improved when one of following issue is resolved:

@rebornix rebornix added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Nov 5, 2019
@bpasero bpasero added the upstream-issue-linked This is an upstream issue that has been reported upstream label Nov 6, 2019
@rebornix rebornix changed the title Web: keybindings non functional in fullscreen Firefox/Safari Web: keybindings non functional in fullscreen Firefox Nov 7, 2019
@rebornix rebornix removed the safari Issues running VSCode in Web on Safari label Nov 7, 2019
@rebornix rebornix modified the milestones: November 2019, Backlog Nov 7, 2019
rebornix added a commit that referenced this issue Nov 7, 2019
@bpasero bpasero changed the title Web: keybindings non functional in fullscreen Firefox Web: desktop-reserved keybindings non functional in fullscreen Firefox Sep 18, 2020
@bpasero bpasero removed their assignment Oct 4, 2020
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Oct 8, 2020
@rebornix rebornix removed the bug Issue identified by VS Code Team member as probable bug label Nov 5, 2020
@djbrown
Copy link

djbrown commented Sep 29, 2024

backreference to closed unanswered https://github.com/orgs/community/discussions/40566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
firefox Issues running VSCode in Web on Firefox upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

3 participants