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

Paste with Ctrl + V #31

Closed
arielectron opened this issue Jun 3, 2020 · 3 comments
Closed

Paste with Ctrl + V #31

arielectron opened this issue Jun 3, 2020 · 3 comments

Comments

@arielectron
Copy link

Hello.
I was thinking of adding the code of the Ctrl key in the if of keyup and keydown, but before doing it, I think it's prudent to check if it's not there for some reason.

@fkranenburg
Copy link
Owner

Some keys including Ctrl are not being accepted right now, but it should not be difficult to implement. I can't think of any good reason for this. If you have the time to implement it, I'll accept pull requests.

@arielectron
Copy link
Author

ok thanks, these days I will be testing it, if everything works well, I will commit

@martingaudioso1990
Copy link

Hi, the paste method is skipped by keydown preventDefault. You need to add this line:

			}
			**else if (e.ctrlKey && e.keyCode === 86) {
				return;
			}**
			else {
				// in desktop mode, check if an number was entered

				if (!(e.keyCode == 8                            // backspace key
					|| e.keyCode == 9							// tab key

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

3 participants