1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 04:40:05 +02:00
This commit is contained in:
s2
2018-05-19 16:26:40 +02:00
parent eca9796be7
commit 011e76f3bf
4 changed files with 18 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
(function($) {
let ipcRenderer = require('electron').ipcRenderer;
const ipcRenderer = require('electron').ipcRenderer;
const searchInPage = require('electron-in-page-search').default;
const remote = require('electron').remote;
//events
ipcRenderer.on('fileList', (event, files) => {
@@ -59,6 +62,13 @@
window.location.reload(false);
});
$(document).on('keypress', (ev) => {
//ctrl + f
if (ev.ctrlKey && ev.charCode == 6) {
let inPageSearch = searchInPage(remote.getCurrentWebContents());
inPageSearch.openSearchWindow();
}
});
//startup
PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4