mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
Apply hotkeys on question pages
This commit is contained in:
parent
d684e8d782
commit
b22fc0bd16
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
|||
= render "question", question: @question, hidden: false
|
||||
= render "question", question: @question, hidden: true
|
||||
.container.question-page
|
||||
#answers
|
||||
#answers{ data: { controller: "navigation" } }
|
||||
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
|
||||
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
|
||||
- @answers.each do |a|
|
||||
= render "answerbox", a: a, show_question: false
|
||||
|
||||
|
|
Loading…
Reference in a new issue