Zeroclickinfo-goodies: Calculator: Add ability to paste values into calculator

Created on 13 May 2017  路  5Comments  路  Source: duckduckgo/zeroclickinfo-goodies

Would be great if we could paste (Ctrl-v) into the calculator.


IA Page: http://duck.co/ia/view/calculator
Maintainer: @pjhampton

Highest Impact Tasks Improvement High Suggestion Calculator

Most helpful comment

Assigning @souravbadami based on slack convo 馃憤

All 5 comments

Yeah, I like that idea. Will implement next week! 馃憤

Assigning @souravbadami based on slack convo 馃憤

@souravbadami are you still working on this?

Ok, I looked into this. The issue with implementing this suggested feature is because:

  1. We don't us an HTML <input /> field, we use a span. So we can't rely on the user's computer, and:
  2. Using JS to grab from the users keyboard isn't going to work cross browser, so we can't give the users a consistent experience. See this Stack Overflow answer.
  3. Not everyone uses ctl, some use cmd which we can't capture.

So this is a user/browser support issue.
Never say never, but not for now 馃憤 sorry to disappoint @jonathancross.

Yeah, I suppose it would have to be a paste button unless you are interested in switching to an <input> element.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zappe picture zappe  路  5Comments

stevenmg picture stevenmg  路  3Comments

fzzr- picture fzzr-  路  5Comments

echamudi picture echamudi  路  5Comments

mintsoft picture mintsoft  路  5Comments