mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
add cmd-l listener
This commit is contained in:
parent
82e88d2f61
commit
0053ebbfa9
@ -110,6 +110,11 @@ function createMainWindow(clientData) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (input.code == "KeyL" && input.meta) {
|
||||
win.webContents.send("l-cmd", mods);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (input.code == "KeyW" && input.meta) {
|
||||
e.preventDefault();
|
||||
win.webContents.send("w-cmd", mods);
|
||||
|
@ -4,6 +4,7 @@ contextBridge.exposeInMainWorld("api", {
|
||||
getId: () => ipcRenderer.sendSync("get-id"),
|
||||
onTCmd: (callback) => ipcRenderer.on("t-cmd", callback),
|
||||
onICmd: (callback) => ipcRenderer.on("i-cmd", callback),
|
||||
onLCmd: (callback) => ipcRenderer.on("l-cmd", callback),
|
||||
onHCmd: (callback) => ipcRenderer.on("h-cmd", callback),
|
||||
onWCmd: (callback) => ipcRenderer.on("w-cmd", callback),
|
||||
onMetaArrowUp: (callback) => ipcRenderer.on("meta-arrowup", callback),
|
||||
|
Loading…
Reference in New Issue
Block a user