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

What is Framer? Join the Community
Return to index
Ricardo Pedroso
Posted Feb 28 - Read on Facebook

Hey Does anyone know how to disable the "enter" key on refreshing the prototype page? Thanks!


Floris Verloop

You can listen to the "keydown" event and check if it's the enter key (every key has a key code, the enter is 13). You can then call the "preventDefault" function in the event object. To illustrate this I've disabled the "f" key in the input field.

Here's an example →

Marc Krenn

Ricardo, it sounds like you want turn off Framer Studio's auto refresh, right?

If that's what you want, you can turn it off by clicking on the left icon in the bottom right corner of the code editor. Then simply un-tick the checkbox:

Read the entire post on Facebook