4 votes

Is there an easy way to make ctrl/cmd-enter work everywhere?

I don't want to ask this question in "default" groups as peeps that monitor this group will likely know the answer, and I support not making "Tildes a site about discussing Tildes" :)
inline-edit: for context this was originally posted in ~test.

I am probably one of the most heavily mobile-first users here, but when on desktop, I really want ctrl-enter to work everywhere. Is there some way to make sure all "save" buttons use ctrl/cmd-enter across the entire site? Can this be done via a class or something?

If not, I can go through the whole site and find places where it does not work.. first example is in the new awesome edit tags ui.

2 comments

  1. [2]
    Deimos
    Link
    It should work in most places, but it's easy to add anywhere that it doesn't (and seems appropriate). All it takes to add it to a form field is adding the data-js-ctrl-enter-submit-form attribute,...

    It should work in most places, but it's easy to add anywhere that it doesn't (and seems appropriate).

    All it takes to add it to a form field is adding the data-js-ctrl-enter-submit-form attribute, like this: https://gitlab.com/tildes/tildes/blob/master/tildes/tildes/templates/macros/forms.jinja2#L28

    3 votes
    1. Neverland
      (edited )
      Link Parent
      I created https://gitlab.com/tildes/tildes/issues/508 for the specific tag autocomplete ui feature... anyone else notice other appropriate places?

      I created https://gitlab.com/tildes/tildes/issues/508 for the specific tag autocomplete ui feature... anyone else notice other appropriate places?

      3 votes