Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cominbation not working (OSX, Java 9) #7

Open
calligood opened this issue Jan 21, 2018 · 5 comments
Open

Cominbation not working (OSX, Java 9) #7

calligood opened this issue Jan 21, 2018 · 5 comments

Comments

@calligood
Copy link

Sending a key combination results in no output. Using sendKey() works as intended.

@fernandohu
Copy link
Contributor

Hello, can you give me more details about the error?

@MazEbeid
Copy link

MazEbeid commented Aug 2, 2018

I have the same error/bug

I am tryin to simulate a paste command - I am using a mac book so I am trying to send 'Command+V'

I don't receive any errors, the java icon pops up and then goes away but no pasting takes place.

I am trying to paste something on to a google doc.
var ks = require('node-key-sender'); ks.sendCombination(['Command','v']);

@jaybeecave
Copy link

+1. tried this exact thing

@coda-nsit
Copy link

+1

@jaybeecave do normal keys work for you? For me nothing works-- the Java icons open and close automatically . I have a regular text file open.

I have 10.15.7 Catalina.

@zirho
Copy link

zirho commented Sep 27, 2023

Checked out the Java keycode map
https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html

Found out that mac "CMD" is "meta"

so

    await ks.sendCombination(["meta", "tab"]);
    await ks.sendCombination(["meta", "v"]);

This is what you can try.
It works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants