Add hot keys feature
Some checks failed
/ Run tests (push) Failing after 1m44s
/ Run system tests (push) Failing after 1m46s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-09 03:54:25 +01:00
parent 435e94c186
commit 016985d2cb
9 changed files with 41 additions and 6 deletions

View file

@ -10,4 +10,6 @@
<%= render partial: "pages/new_element_button", locals: { page: page } %>
<% end %>
</div>
<%= link_to("Zum ersten Element", "##{dom_id(page.elements.first)}", class: "visually-hidden", data: {controller: :hotkey, hotkey: "a"}) if page.elements.first %>
</div>