0

How can I make Firefox submit a form by hitting ctrl+enter even if cursor is in a textarea?

There are some work arounds to enable this, if you create web pages with jquery. But this short cut should work on all web pages.

8
  • 1
    I think you might have a bogus question here. I know there are some default functions in most websites, but programmers can use PHP and other languages to add, change or override them in order for a site to function in a particular way. They really can't be overridden by the browser or there would be no security in the site. It's like asking for a button for your car that changes every traffic light to green for you. You might change a few, but you could also cause a wreck using it.
    – Buck
    Aug 18, 2015 at 11:43
  • @Buck questions on this site (AskUbuntu) come from users, not developers. I guess users have the right to ask for usability. This common keyboard short cut would improve usability for me. Are you sure that your statement "... They really can't be overridden by the browser ..." is true? There are a lot of browser plugins which do fancy stuff.
    – guettli
    Aug 18, 2015 at 14:05
  • First, can I get an accurate perspective? Your question sounds like it comes from a website visitor, but your reference to jquery sounds like it comes from a website developer. jquery is a "library" which means its functions are predefined and anyone using it allows the same functions on their sites. However, that may not be true for a PHP or other source library. If you are a developer, you should know how important it is to control what happens within a text field when your user presses certain key combinations. (continued.)
    – Buck
    Aug 18, 2015 at 21:47
  • "Never say 'Never!'" Someone might be able to override every possible scheme designed to prevent visitors from cracking their sites using control codes in their text fields, but it would probably not be worth it to the legitimate visitor. Some Wordpress versions can be cracked by submitting long strings with php code attached to certain text fields. I'm sure WP fixed it, but I still use plugins that prevent it just the same. Yet, every week I see those strings being submitted to each of my sites. It's possible that it's the very reason your <CTRL><Enter> might not work on my forms.
    – Buck
    Aug 18, 2015 at 22:03
  • 1
    @guettli a) some sites have >1 form. b) there are gazillion ways (and addons) to play around with your own personal shortcuts (in firefox, at least). c) to make these personal shortcuts effective, you'd probably want to tailor them to the websites you frequent on a per-site basis. d) if you are looking for sth more universal, are you familiar with the basic Tab and Shift Tab keyboard shortcuts for form (and element) navigation? Aug 19, 2015 at 10:11

2 Answers 2

1
  1. some sites have >1 form.
  2. there are gazillion ways (and addons) to play around with your own personal shortcuts (in firefox, at least).
  3. to make these personal shortcuts effective, you'd probably want to tailor them to the websites you frequent on a per-site basis.
  4. if you are looking for sth more universal, are you familiar with the basic Tab and Shift Tab keyboard shortcuts for form (and element) navigation?
3
  • thank you for your answer. Where is the question to your answer?
    – guettli
    Aug 19, 2015 at 11:03
  • @guettli I tried to make a few points clear with my answer. You might want to address some of these issues and plug them back into your original question. Aug 20, 2015 at 13:14
  • 1
    @guettli as far as "make ctrl+enter submit a form, even if cursor is in a textarea" is concerned I can imagine and could outline a number of ways to achieve that for a given website. However, to make this behaviour "universal" for all or even most websites out there...? good luck... Aug 20, 2015 at 13:17
0

If you are good at programming install greaseMonkey addon and write a script you wish to do with the webpage.

But ctrl + enter is a default shortcut keys to add www and .com in the url.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .