Skip to content

Option to specify button on a MouseEvent and text on a KeyboardEvent when using sendInputEvent - #2918

Merged
zcbenz merged 4 commits into
electron:masterfrom
brenca:master
Sep 28, 2015
Merged

zcbenz merged 4 commits into
electron:masterfrom
brenca:master

Conversation

@brenca

@brenca brenca commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

I've added the option to specify the button field of the WebMouseEvent that was being sent, because without that my example (selecting text with sent events) didn't work - I also set the text and unmodifiedtext fields on Char and RawKeyDown events, because without that the actual "typed" key didn't appear in my inputs. I also set the type of the keyCode to char16 and removed the failing condition on an undefined VKEY, because without this I wouldn't have been able to type characters other than the ones on the english keyboard.

@zcbenz

zcbenz commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

Awesome, thanks!

zcbenz added a commit that referenced this pull request Sep 28, 2015
Option to specify button on a MouseEvent and text on a KeyboardEvent when using sendInputEvent
@zcbenz
zcbenz merged commit 11af4b6 into electron:master Sep 28, 2015
zcbenz added a commit that referenced this pull request Sep 28, 2015
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

Successfully merging this pull request may close these issues.

2 participants