question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't command+click

See original GitHub issue

Version

"@nut-tree/nut-js": "^1.7.0",

Short overview

This is my code

async function main() {
	await nut.sleep(2000)
	await nut.keyboard.pressKey(nut.Key.LeftSuper)
	await nut.mouse.leftClick()
	await nut.keyboard.releaseKey(nut.Key.LeftSuper)
}

main()

And I have a codepen with this:

document.addEventListener("click", event => {
		console.log(
			"click",
			event.metaKey
		)
});

document.addEventListener("keydown", event => {
		console.log(
			"keydown",
      event.key,
			event.metaKey
		)
});

document.addEventListener("keyup", event => {
		console.log(
			"keyup",
      event.key,
			event.metaKey
		)
});

And I’m seeing:

"click" false
"keyup" "Meta" false

Issue occurs on

  • Virtual machine
  • Docker container
  • Dev/Host system

Detailed error description

Steps to reproduce error

Additional content

Please provide any (mandatory) additional data to reproduce the error (Dockerfiles etc.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
s1hofmanncommented, May 22, 2022

@ccorcos Thanks for verifying (and your patience 😂). Will publish a patch release soonish

1reaction
ccorcoscommented, May 22, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Command + tap-to-click not working proper…
I have tap = click enabled for my trackpad, but whenever I use the cmd key in combination with it behavior becomes flaky....
Read more >
Command + Click not opening links in new tabs
Strangely, Command + Click has stopped opening links in new tabs on my computer. It opens them in the same tab, as if...
Read more >
Why can't I COMMAND+click a method call to go to it's ...
On OS X with 2.0 Beta 3: Several of us are using RubyMine in the office. They can press COMMAND and then mouse-over...
Read more >
Can't command-click in Windows
I am using Safari in Windows. It is possible to ctrl-right click on text to make it smaller, but not to Command-right click...
Read more >
Enabling Command-Click - Blizzard Support - Battle.net
Log in to World of Warcraft. Press the Escape key to open the menu. Select Options. Select Controls and check Interact On Left...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found