import { IKeyboardShortcutEvent } from "./KeyboardShortcutsStore" ; export namespace KeyboardShortcutHandlers { export function withPreventDefault ( delegate ) { return ( event ) => { if ( event ) { event . preventDefault ( ) ; event . stopPropagation ( ) ; } delegate ( ) ; } ; } }