-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-deploy-action-polymorphic-equal-test
- Loading branch information
github-deploy-action
committed
Nov 27, 2024
1 parent
fb910f3
commit de93f9e
Showing
35 changed files
with
35,672 additions
and
32,019 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,22 @@ | |
<title>hazel</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="icon" type="image/svg" href = "img/hazelnut.svg"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Material+Icons&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<!-- The current version of lit-html is broken so this overwrites it for the ninja-keys import. --> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"https://unpkg.com/lit-html@latest/directives/ref.js?module": "https://unpkg.com/[email protected]/directives/ref.js?module" | ||
} | ||
} | ||
</script> | ||
<script type="module" src="ninja_module.js"></script> | ||
|
||
</head> | ||
|
||
<body spellcheck="false"> | ||
|
@@ -22,6 +38,7 @@ | |
</div> | ||
</div> | ||
</body> | ||
<ninja-keys id="ninja-keys" placeholder="Find Action" hideBreadcrumbs></ninja-keys> | ||
|
||
<script src="hazel.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {NinjaKeys} from 'https://unpkg.com/ninja-keys?module'; | ||
import hotkeys from "https://unpkg.com/[email protected]?module" | ||
|
||
|
||
// This is the default behavior for the hotkeys module but I'm overriding it for the clipboard-shim | ||
hotkeys.filter = event => { | ||
const target = event.target || event.srcElement; | ||
const { tagName, id } = target; | ||
|
||
// Override happening here | ||
if(id == "clipboard-shim") { | ||
return true; | ||
} | ||
|
||
let flag = true; | ||
const isInput = tagName === 'INPUT' && !['checkbox', 'radio', 'range', 'button', 'file', 'reset', 'submit', 'color'].includes(target.type); | ||
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select> | ||
if ( | ||
target.isContentEditable | ||
|| ((isInput || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) | ||
) { | ||
flag = false; | ||
} | ||
return flag; | ||
}; |
Oops, something went wrong.