add option to disable keybindings

This commit is contained in:
MayNiklas 2026-02-17 14:46:11 +01:00
parent 70cde4c3a8
commit 87cd78abfb
6 changed files with 92 additions and 2 deletions

View file

@ -27,7 +27,12 @@ class RegisterEventHelper {
constructor() {
this.registerTooltips();
this.configureDropdowns();
this.registerSpecialCharInput();
// Only register special character input if enabled in configuration
const keybindingsEnabled = document.body.dataset.keybindingsSpecialCharacters !== 'false';
if (keybindingsEnabled) {
this.registerSpecialCharInput();
}
//Initialize ClipboardJS
this.registerLoadHandler(() => {