: Pressing Command (⌘) + [ and then Command (⌘) + ] will take you out of the folder and back in, triggering a refresh. App-Specific Refresh Shortcuts
// refresh-shortcut.directive.ts import Directive, HostListener, Output, EventEmitter from '@angular/core'; mac refresh keyboard shortcut
executeRefresh() // Custom refresh logic if (this.options.onRefresh) this.options.onRefresh(); else // Default: reload the page window.location.reload(); : Pressing Command (⌘) + [ and then
setupEventListeners() document.addEventListener('keydown', (e) => const isMacRefresh = (e.metaKey && e.key === 'r'); const isWinRefresh = (e.ctrlKey && e.key === 'r'); EventEmitter from '@angular/core'