Skip to content

Commit

Permalink
Add local storage option to disable shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 14, 2023
1 parent cf9c92e commit d2595ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realtime-compiler/resources/live-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function initLiveEdit() {
}

function shortcutsEnabled() {
return true; // Todo: Add option to disable all keyboard shortcuts
return localStorage.getItem('hydephp.live-edit.shortcuts') !== 'false';
}

const article = getArticle();
Expand Down

0 comments on commit d2595ea

Please sign in to comment.