From cc73f84152be19d4b5fcbac8d5317883bb247dad Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 5 Mar 2023 18:46:15 +0100 Subject: [PATCH] Change smile hotkey to `s` --- app/views/answerbox/_actions.html.haml | 2 +- app/views/shared/_hotkeys.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/answerbox/_actions.html.haml b/app/views/answerbox/_actions.html.haml index 6003b863..4ec1c35d 100644 --- a/app/views/answerbox/_actions.html.haml +++ b/app/views/answerbox/_actions.html.haml @@ -1,4 +1,4 @@ -%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile", data: { a_id: a.id, action: current_user&.smiled?(a) ? :unsmile : :smile, selection_hotkey: "l" }, disabled: !user_signed_in? } +%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile", data: { a_id: a.id, action: current_user&.smiled?(a) ? :unsmile : :smile, selection_hotkey: "s" }, disabled: !user_signed_in? } %i.fa.fa-fw.fa-smile-o %span{ id: "ab-smile-count-#{a.id}" }= a.smiles.count - unless display_all diff --git a/app/views/shared/_hotkeys.html.haml b/app/views/shared/_hotkeys.html.haml index 3050ffd8..f2d615de 100644 --- a/app/views/shared/_hotkeys.html.haml +++ b/app/views/shared/_hotkeys.html.haml @@ -61,7 +61,7 @@ %ul.list-group.list-group-flush %li.list-group-item = t('voc.smile') - %kbd l + %kbd s %li.list-group-item = t('.answer.view_comments') %kbd x