aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ipc.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 22:19:57 +0100
committer0neGal <mail@0negal.com>2024-12-20 22:19:57 +0100
commitbd2a77a0f38e4f82fe0a8f437b8d038ae7188dfa (patch)
tree10e8b42ca05107fe675baeea9e6a962483d3e603 /src/modules/ipc.js
parentf72cc613d9183e6f5017d6c499f22c53d5010e55 (diff)
downloadViper-bd2a77a0f38e4f82fe0a8f437b8d038ae7188dfa.tar.gz
Viper-bd2a77a0f38e4f82fe0a8f437b8d038ae7188dfa.zip
properly open <select>'s with navigation functions
Diffstat (limited to 'src/modules/ipc.js')
-rw-r--r--src/modules/ipc.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/ipc.js b/src/modules/ipc.js
index 55737b7..57820b5 100644
--- a/src/modules/ipc.js
+++ b/src/modules/ipc.js
@@ -30,3 +30,10 @@ ipcMain.on("relaunch", () => {
app.exit(0);
})
+
+ipcMain.on("send-enter-key", (e, coords) => {
+ e.sender.sendInputEvent({
+ type: "char",
+ keyCode: "enter"
+ })
+})