We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10208 ☆ A M B ☆
    • 1,780 Posts
    Is it possible to program MODX to use the enter key for the "ok" pop-up like ctrl+s works to save a document/resource?

    I'd love to see this on all "ok" buttons. I'm not a clicker by nature, I dislike always having to take my hands off the keyboard to navigate. Any keyboard shortcut I can use, I will. When I see "ok", I naturally wish to hit "enter" on the keyboard. But that doesn't work in MODX.
      Frogabog- MODX Websites in Portland Oregon
      "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
      Having server issues? These guys have MODX Hosting perfected - SkyToaster
      • 3109 ☆ A M B ☆
      • 894 Posts
      So what would happen when writing code or a paragraph and you hit enter?

      I can see maybe ctrl+enter but not enter on it's own.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 10208 ☆ A M B ☆
        • 1,780 Posts
        When the pop-up shows, with the ok button available, I'd use enter at that point.

        I would not expect enter to function differently while in a coding window within MODX. Just the pop-ups. And just for "OK" by default. Tabbing might be applied to tab over to the "save output to file" button, and then enter could also be used for that button.

        I see why you're asking though, as ctrl+s works outside of a pop-up window.

        I can see it being advantageous while installing packages as well.
          Frogabog- MODX Websites in Portland Oregon
          "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
          Having server issues? These guys have MODX Hosting perfected - SkyToaster