CADmium-Co / CADmium

A CAD program that runs in the browser
https://cadmium-co.github.io/CADmium/
Other
1.35k stars 51 forks source link

Escape Key should exit sketch tool without escaping full screen mode (Firefox only bug) #69

Closed MattFerraro closed 1 week ago

MattFerraro commented 1 month ago

When I'm using any of the sketch tools like rectangle or circle or line, I expect to be able to cancel the current rectangle/circle/line by tapping the escape key. This does work on both Chrome and Firefox, but specifically on Firefox if my browser is full screen the escape switches the browser back into partial-screen mode. This is super annoying because then the page resizes and everything reflows. This does not happen on Chrome

Expected behavior is that escape key should not switch the browser from full screen mode to partial screen mode.

I have only seen this behavior on Firefox on a Mac

0HyperCube commented 4 weeks ago

It is currently impossible to override the standard firefox escape behaviour as this could allow malicious sites to mislead or trap the user. There is some unresolved discussion on blocking the keyboard inputs for this usecase. There is also a chromium only keyboard lock api that resolves this, but nothing yet for firefox.

MattFerraro commented 1 week ago

ouch, that's a big bummer. I guess I'll close this for now then!