openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
899 stars 438 forks source link

Support Ctrl-ENTER as the universal submit key #14399

Open mcepl opened 1 year ago

mcepl commented 1 year ago

Is your feature request related to a problem? Please describe. Many web commenting/chatting etc. forms on the Web (I can for certain mention this GitHub comment box, Element web chat, Slack, and there are others; unfortunately, not Facebook, they just have to pee on everybody’s user experience) now have Ctrl-ENTER as a shortcut for submission. It makes it much more comfortable to use.

Describe the solution you'd like Whenever there is a form with a text comment (probably not <INPUT> elements for them plain ENTER is probably more appropriate, but the equivalents of <TEXTAREA> HTML element) there is a shortcut for the active box Ctrl-ENTER which is an equivalent of click on the button "Add Comment" or a similar one.

hennevogel commented 1 year ago

I guess this would require a more sophisticated feature to be understandable. Like github or slack have...

mcepl commented 1 year ago

I guess this would require a more sophisticated feature to be understandable. Like github or slack have...

Why? .addEventListener and KeyboardEvent.Code are everywhere, aren’t they? What more do you need?

hennevogel commented 1 year ago

What more do you need?

Technically nothing. But we would need people to know they they exist that don't know they exist on some other web apps?

mcepl commented 1 year ago

Well, yes, that would be nice, but still even the first step (a happy surprise for anybody who tries) would be a step in the right direction.

hennevogel commented 1 year ago

...would be a step in the right direction.

No one is arguing against this :)

mcepl commented 1 year ago

What more do you need?

Technically nothing. But we would need people to know they they exist that don't know they exist on some other web apps?

You can write something into README.

mcepl commented 1 year ago

What more do you need?

Technically nothing. But we would need people to know they they exist that don't know they exist on some other web apps?

You can write something into README.