fix debug tool - open with ctrl+F12 (#1558)

This commit is contained in:
Christian Günter 2024-11-21 19:49:16 +01:00 committed by GitHub
parent dd0121578e
commit b37afef0e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models",
}
document.addEventListener("keydown", function (zEvent) {
if (zEvent?.key === "F12") {
if (zEvent?.key === "F12" && zEvent?.ctrlKey) {
new z2ui5.cc.DebugTool().show();
}
});

View File

@ -56,7 +56,7 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
` }` && |\n| &&
`` && |\n| &&
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
` if (zEvent?.key === "F12") {` && |\n| &&
` if (zEvent?.key === "F12" && zEvent?.ctrlKey) {` && |\n| &&
` new z2ui5.cc.DebugTool().show();` && |\n| &&
` }` && |\n| &&
` });` && |\n| &&