mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
perf: disable f1 key
This commit is contained in:
@@ -36,7 +36,7 @@ document.addEventListener("contextmenu", function (event) {
|
||||
|
||||
const AllowedKeys = ['P', 'F', 'C', 'V']
|
||||
window.addEventListener("keydown", function (e) {
|
||||
if (e.key === "F12" || (e.ctrlKey && !AllowedKeys.includes(e.key.toUpperCase()))) {
|
||||
if (e.key === "F12" || e.key === "F1" || (e.ctrlKey && !AllowedKeys.includes(e.key.toUpperCase()))) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
debug('Press key: ', e.ctrlKey ? 'Ctrl' : '', e.shiftKey ? ' Shift' : '', e.key)
|
||||
|
Reference in New Issue
Block a user