Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is there a way to change the defaulted (press 'Enter or Return on keyboard) button in a dialog box? Specifically,

  • 2 replies
  • 1 has this problem
  • 8 views
  • Last reply by Wilzard

more options

When the cookie preference is set to "ask every time" the default button (highlighted & selected when I hit return or enter) is "allow." Can I change the default button to "allow for session" so I don't have to use the mouse to select it?

When the cookie preference is set to "ask every time" the default button (highlighted & selected when I hit return or enter) is "allow." Can I change the default button to "allow for session" so I don't have to use the mouse to select it?

All Replies (2)

more options

There probably is a way to edit the code behind that dialog in Firefox's source files to change the default. Or maybe an add-on can tweak it.

In the short run, what do you think about pressing Alt+s to "click" the Allow for Session button?

Edit: Sorry, on the Mac, it might be option+s instead of Alt+s.

Modified by jscher2000 - Support Volunteer

more options

Your question/suggestion got me thinking about making a programmable function key (PFK), but I couldn't think how to make a PFK represent a mouse click. Then I tried the option [ ⌥ ] key (I don't have Alt [⎇ ] ) and the s, with or without the shift. I tried the command [⌘] key, and finally the control [⌃] key with the s — that's the one that worked. 8¬D

I remembered scripting radio buttons, which might apply here, but it's been too long ago.

Thank you for pointing me in a new direction, that will do well enough 'till I find out if the default button(s) can be changed in dialog boxes in general.