#= require shortcuts_navigationclass@ShortcutsFindFileextendsShortcutsNavigationconstructor:(@projectFindFile)->super()_oldStopCallback=Mousetrap.stopCallback# override to fire shortcuts action when focus in textboxMousetrap.stopCallback=(event,element,combo)=>ifelement==@projectFindFile.inputElement[0]and(combo=='up'orcombo=='down'orcombo=='esc'orcombo=='enter')# when press up/down key in textbox, cusor prevent to move to home/endevent.preventDefault()returnfalsereturn_oldStopCallback(event,element,combo)Mousetrap.bind('up',@projectFindFile.selectRowUp)Mousetrap.bind('down',@projectFindFile.selectRowDown)Mousetrap.bind('esc',@projectFindFile.goToTree)Mousetrap.bind('enter',@projectFindFile.goToBlob)