aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/common/layout.html')
-rw-r--r--template/html/common/layout.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index 312c21f..695d177 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -38,7 +38,9 @@
<script type="text/javascript" src="{{ route "javascript" "name" "app" }}?{{ .app_js_checksum }}" defer></script>
<script type="text/javascript" src="{{ route "javascript" "name" "sw" }}?{{ .sw_js_checksum }}" defer id="service-worker-script"></script>
</head>
-<body data-entries-status-url="{{ route "updateEntriesStatus" }}">
+<body
+ data-entries-status-url="{{ route "updateEntriesStatus" }}"
+ {{ if .user }}{{ if not .user.KeyboardShortcuts }}data-disable-keyboard-shortcuts="true"{{ end }}{{ end }}>
{{ if .user }}
<header class="header">
<nav>