This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Isaac Weinhausen
Posted Sep 21 - Read on Facebook

Has anyone found a good solution for suppressing the browser's default focus behavior? Currently, when viewing a Framer prototype in the browser, hitting tab cycles through the ui chrome elements and once into the webpage, and then back out into the ui chrome. Can someone point me in the right direction? Guessing I'd probably need to fool around with the Window object.

Here's the prototype. Works find in Frame Studio, just not the browser.


Isaac Weinhausen

Also, feel free to steal my FocusController. :)

Jordan Robert Dobson

We could take a look today if you want.

Kevyn Arnott

Did you figure this out? If not, you could probably listen to the tab key and preventDefault.

Sigurd Tapio Mannsåker

Yup, what Kevyn said. Very handy trick, I use it for the escape key sometimes for remote controls with stupidly mapped keys :)

Isaac Weinhausen

Thx to Kevyn Arnott it now worksI Trick: use the event.preventDefault() method.

Read the entire post on Facebook