Skip to content

Commit e0246cf

Browse files
authored
Undo format
1 parent 2bb3e7c commit e0246cf

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

pages/hotkey_mapper.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@
1212
<body>
1313
<div class="mx-auto my-3 col-12 col-md-8 col-lg-6">
1414
<h1 id="app-name">Hotkey Code</h1>
15-
<p id="hint">Press a key combination to see the corresponding hotkey string. Quickly press another combination to
16-
build a sequence.</p>
15+
<p id="hint">Press a key combination to see the corresponding hotkey string. Quickly press another combination to build a sequence.</p>
1716
<div class="position-relative">
18-
<input readonly role="application" aria-roledescription="Input Capture" autofocus aria-labelledby="app-name"
19-
aria-describedby="hint sequence-hint" aria-live="assertive" aria-atomic="true" id="hotkey-code"
20-
class="border rounded-2 mt-2 p-6 f1 text-mono" style="width: 100%" />
17+
<input
18+
readonly
19+
role="application"
20+
aria-roledescription="Input Capture"
21+
autofocus
22+
aria-labelledby="app-name"
23+
aria-describedby="hint sequence-hint"
24+
aria-live="assertive"
25+
aria-atomic="true"
26+
id="hotkey-code"
27+
class="border rounded-2 mt-2 p-6 f1 text-mono"
28+
style="width: 100%"
29+
/>
2130

2231
<div class="position-absolute bottom-2 left-3 right-3 d-flex" style="align-items: center; gap: 8px">
2332
<!-- This indicates that the input is listening for a sequence press. Ideally we'd have a way to tell screen
@@ -53,7 +62,7 @@ <h1 id="app-name">Hotkey Code</h1>
5362
let currentsequence = null
5463

5564
hotkeyCodeElement.addEventListener('keydown', event => {
56-
if (event.key === "Tab")
65+
if (event.key === "Tab")
5766
return;
5867

5968
event.preventDefault();
@@ -80,4 +89,4 @@ <h1 id="app-name">Hotkey Code</h1>
8089
</script>
8190
</body>
8291

83-
</html>
92+
</html>

0 commit comments

Comments
 (0)