We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6adcfc5 commit a7cd096Copy full SHA for a7cd096
1 file changed
public/index.html
@@ -75,6 +75,8 @@ <h1 class="text-2xl font-bold truncate">takeCode</h1>
75
if (e.ctrlKey && e.key === 'k') {
76
e.preventDefault();
77
document.getElementById('search').focus();
78
+ } else if (e.key === 'Escape' && document.activeElement === document.getElementById('search')) {
79
+ clearSearch();
80
}
81
});
82
</script>
0 commit comments