1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

fix search window

This commit is contained in:
s2
2019-06-06 15:56:42 +02:00
parent c5f9b551ab
commit 1313cff86a
21 changed files with 1297 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
(function($) {
const ipcRenderer = require('electron').ipcRenderer;
const remote = require('electron').remote;
const electronFind = require('electron-find');
let findInPage = new electronFind.FindInPage(remote.getCurrentWebContents());
//events
ipcRenderer.on('fileList', (event, files) => {
@@ -71,6 +74,11 @@
});
$(document).on('keypress', (ev) => {
//ctrl + f
if (ev.ctrlKey && ev.charCode == 6) {
findInPage.openFindWindow();
}
//ctrl + r
if (ev.ctrlKey && ev.keyCode == 18) {
window.location.reload(false);