Apply hotkeys on question pages
This commit is contained in:
parent
d684e8d782
commit
b22fc0bd16
|
@ -2,7 +2,9 @@
|
||||||
= render "question", question: @question, hidden: false
|
= render "question", question: @question, hidden: false
|
||||||
= render "question", question: @question, hidden: true
|
= render "question", question: @question, hidden: true
|
||||||
.container.question-page
|
.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|
|
- @answers.each do |a|
|
||||||
= render "answerbox", a: a, show_question: false
|
= render "answerbox", a: a, show_question: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue