-const $ = global.jquery = require('jquery');
-require('jquery.cookie');
-require('jquery-ui');
-const annotator = require('annotator');
-import { savePercent, retrievePercent } from '../../_global/js/tools.js';
-import { split, extractLast } from './autoCompleteTags.js';
-import { toggleSaveLinkForm } from './uiTools.js';
+/* jQuery */
+import $ from 'jquery';
+/* eslint-disable no-unused-vars */
+/* jquery has default scope */
+import cookie from 'jquery.cookie';
+import ui from 'jquery-ui-browserify';
+/* eslint-enable no-unused-vars */
+
+/* Annotations */
+import annotator from 'annotator';
+
+/* Shortcuts */
+import './shortcuts/main';
+import './shortcuts/entry';
+import '../../_global/js/shortcuts/main';
+import '../../_global/js/shortcuts/entry';
+
+/* Tools */
+import { savePercent, retrievePercent } from '../../_global/js/tools';
+import toggleSaveLinkForm from './uiTools';
+
+global.jquery = $;
$.fn.ready(() => {
const $listmode = $('#listmode');
/**
* Tags autocomplete
*/
+ /**
+ * Not working on v2
+ *
+
$('#value').bind('keydown', (event) => {
if (event.keyCode === $.ui.keyCode.TAB && $(this).data('ui-autocomplete').menu.active) {
event.preventDefault();
return false;
},
});
+ */
//---------------------------------------------------------------------------
// Close the message box when the user clicks the close icon