refactor: change CTRL+F12 condition to natural order (#1560)

This commit is contained in:
Christian Günter 2024-11-21 21:18:09 +01:00 committed by GitHub
parent 69a742e9d3
commit 5aa6743f82
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" && zEvent?.ctrlKey) {
if (zEvent?.ctrlKey && zEvent?.key === "F12") {
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" && zEvent?.ctrlKey) {` && |\n| &&
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
` new z2ui5.cc.DebugTool().show();` && |\n| &&
` }` && |\n| &&
` });` && |\n| &&