[READ-ONLY] Mirror of https://github.com/probablykasper/time-machine-inspector. Time Machine backup size inspector app
backup macos tauri time-machine
0

Configure Feed

Select the types of activity you want to include in your feed.

Add Left/Right shortcut for toggling folders

Kasper (Jan 28, 2022, 12:07 AM +0100) d36b5fc7 468a32ee

+17
+17
src/page/PageItems.svelte
··· 38 38 }) 39 39 } 40 40 41 + function bodyKeydown(e: KeyboardEvent) { 42 + if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') { 43 + for (const item of dir) { 44 + if (item.path === $selectedPath) { 45 + if (e.key === 'ArrowRight') { 46 + $pageMap[path][item.name].isOpen = true 47 + } else if (e.key === 'ArrowLeft') { 48 + $pageMap[path][item.name].isOpen = false 49 + } 50 + } 51 + } 52 + e.preventDefault() 53 + } 54 + } 55 + 41 56 function openOrClose(name: string) { 42 57 $pageMap[path][name].isOpen = !$pageMap[path][name].isOpen 43 58 } 44 59 45 60 export let indentLevel = 0 46 61 </script> 62 + 63 + <svelte:body on:keydown={bodyKeydown} /> 47 64 48 65 {#each dir as item} 49 66 <div