No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Q-Select Home/End key support

    Framework
    2
    3
    243
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • labs20
      labs20 last edited by

      Hi.

      I’m trying to bound the Home/End and PgDown/PgUp keys to do “big jumps” while navigating the qselect options.

      The goal is to:

      • Home => Go to first option
      • End => Go to last option
      • Page Up => Scroll up one page of options
      • Page Down => Scroll down one page of options

      Looks like I’m out of luck, for no keyboard event seems to be firing as I navigate the option popup.

      Am I missing something? There is a way to catch events there?

      Another thing, I need to disable the “wrapping” behaviour of when you’re at the last option the next arrow down stroke puts you back at the first option. I need the navigation to stop at both ends. Any hints on that?

      Thank you very much.

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @labs20 last edited by dobbel

        @labs20

        Here’s a Quasar demo with keybinding:

        https://quasar.dev/vue-components/table#Keyboard-navigation

        I googled some more and found this:

        https://vuejsfeed.com/blog/binding-hotkeys-to-components-with-a-custom-vue-js-directive

        https://github.com/Dafrok/v-hotkey

        without plugins:

        https://shubhamjain.co/til/vue-shortcuts/

        1 Reply Last reply Reply Quote 0
        • labs20
          labs20 last edited by

          Hi. Thank you!

          I’ll read your suggestions.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post