How can I send two keyboard inputs at the same time?


#1

[Electron,webContents,sendInputEvent]

I don’t know how to send ‘keyDown’ while sending ‘keyDown’.
I want to let it press some key while pressing Shift key.
Please tell me.

Because I’m a Japanese, I can’t write English well. Sorry.


#2

I have a shortcut in my app, if user clicks ctrl+F it will open search box

$(document).on("keydown", function (e) {
    if ((e.ctrlKey) && e.which === 70) {
      
        //70 is keycode for F http://www.alt-codes.net/
        console.log("user pressed ctrl+F buttons") ;

    }
});

Are you asking this or you want to simulate the button click automatically

Thanks
Jk