File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 page = sessionStorage .getItem (" page" ) || " wiki" ;
2525 });
2626
27- export async function handleKeyInput(e : KeyboardEvent & {
28- currentTarget: EventTarget & Window ;
29- }) {
27+ export async function handleKeyInput(
28+ e : KeyboardEvent & {
29+ currentTarget: EventTarget & Window ;
30+ }
31+ ) {
3032 const doc = e .currentTarget .document ;
31- const notAnInput = ! (doc .activeElement instanceof HTMLInputElement ) && ! (doc .activeElement instanceof HTMLTextAreaElement );
33+ const notAnInput =
34+ ! (doc .activeElement instanceof HTMLInputElement ) && ! (doc .activeElement instanceof HTMLTextAreaElement );
3235 if (e .key == " ArrowLeft" && windowInfo .isNavOpen && notAnInput ) {
3336 windowInfo .isNavOpen = false ;
3437 }
5255 <button
5356 class =" {page == ' wiki'
5457 ? ' bg-stone-700'
55- : ' bg-stone-800' } hover:text-stone-400 px-2 py-1 rounded-md flex items-center gap-1 focus-visible:outline-2 focus-visible:outline-dph-orange"
58+ : ' bg-stone-800' } cursor-pointer hover:text-white hover:font-medium px-2 py-1 rounded-md flex items-center gap-1 focus-visible:outline-2 focus-visible:outline-dph-orange"
5659 onclick ={() => {
5760 page = " wiki" ;
5861 sessionStorage .setItem (" page" , " wiki" );
6265 <button
6366 class =" {page == ' guides'
6467 ? ' bg-stone-700'
65- : ' bg-stone-800' } hover:text-stone-400 px-2 py-1 rounded-md flex items-center gap-1 focus-visible:outline-2 focus-visible:outline-dph-orange"
68+ : ' bg-stone-800' } cursor-pointer hover:text-white hover:font-medium px-2 py-1 rounded-md flex items-center gap-1 focus-visible:outline-2 focus-visible:outline-dph-orange"
6669 onclick ={() => {
6770 page = " guides" ;
6871 sessionStorage .setItem (" page" , " guides" );
You can’t perform that action at this time.
0 commit comments