feat(Search) Search hotkey now working. CMD + K
This commit is contained in:
+11
-4
@@ -12,8 +12,8 @@
|
||||
<link href="css/app.css" rel="stylesheet"/>
|
||||
<link href="IGP.styles.css" rel="stylesheet"/>
|
||||
|
||||
<link href="manifest.json" rel="manifest" />
|
||||
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
|
||||
<link href="manifest.json" rel="manifest"/>
|
||||
<link href="icon-512.png" rel="apple-touch-icon" sizes="512x512"/>
|
||||
</head>
|
||||
|
||||
<body style="background-color: #161618; color: white;">
|
||||
@@ -37,14 +37,21 @@
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
window.DotNetReference = null;
|
||||
window.SetDotnetReference = function (dotnetReference) {
|
||||
window.DotNetReference = dotnetReference;
|
||||
};
|
||||
|
||||
window.getUserAgent = () => {
|
||||
return navigator.userAgent;
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
window.SetFocusToElement = (elementId) => {
|
||||
document.getElementById(elementId).focus();
|
||||
};
|
||||
|
||||
document.addEventListener("keydown", function (e) {
|
||||
DotNetReference?.invokeMethodAsync('OnKeyPress', e.key, e.ctrlKey, e.shiftKey, e.altKey, e.metaKey)
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>navigator.serviceWorker.register('service-worker.js');</script>
|
||||
|
||||
Reference in New Issue
Block a user