Ruby on Rails keyboard shortcuts

前端 未结 3 1965
盖世英雄少女心
盖世英雄少女心 2020-12-30 15:10

does anyone know how to set-up keyboard shortcuts using Ruby on Rails on my website? For example if a user want to interact with the site using keyboard shortcuts instead of

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 15:58

    You can use any JavaScript library to provide keyboard shortcuts. Since Rails uses Prototype by default (for the JavaScript helper methods), you might want to check out prototype-hotkeys.

    There are some usage examples in that website.

提交回复
热议问题