gitlab-ce/app/assets/javascripts/projects/behaviors.js

8 lines
280 B
JavaScript

import Shortcuts from '~/behaviors/shortcuts/shortcuts';
export const initFindFileShortcut = () => {
const findFileButton = document.querySelector('.shortcuts-find-file');
if (!findFileButton) return;
findFileButton.addEventListener('click', Shortcuts.focusSearchFile);
};