Comments (5)
Confirmed. Mac OS X 10.14.6 here.
CMD + v works in:
- Google Chrome 80.0.3987.116 (Official Build) (64-bit)
- Firefox 74.0b6
I wonder what it could be.
from whocanuse.
Here are my findings:
In src/components/control/background.js
, the first HexWrapper:
onKeyPress={e => {
console.log(123, e)
const result = e.key.match(/[^0-9a-fA-F]/)
console.log(444, result)
if (result) {
e.preventDefault()
}
}}
onPaste={e => {
console.log(456, e)
const text = e.clipboardData.getData('Text')
e.preventDefault()
if (chroma.valid(text)) {
setBackground(
chroma(text)
.alpha(1)
.hex()
.replace('#', ''),
)
}
}}
Google Chrome outputs:
456 Class {dispatchConfig: {…}, _targetInst: FiberNode, nativeEvent: ClipboardEvent, type: "paste", target: input.css-dwtz5p-HexWrapper.elv6yn64, …}
Safari outputs:
[Log] 123 – Class {dispatchConfig: {phasedRegistrationNames: {bubbled: "onKeyPress", captured: "onKeyPressCapture"}, dependencies: ["keypress"], eventPriority: 0}, _targetInst: FiberNode, _dispatchListeners: function, …} (commons.js, line 67529)
Class {dispatchConfig: {phasedRegistrationNames: {bubbled: "onKeyPress", captured: "onKeyPressCapture"}, dependencies: ["keypress"], eventPriority: 0}, _targetInst: FiberNode, _dispatchListeners: function, _dispatchInstances: FiberNode, nativeEvent: KeyboardEvent, …}Class
[Log] 444 – ["v"] (1) (commons.js, line 67529)
I'm not sure why they take different code paths.
from whocanuse.
Filed webkit bug here:
https://bugs.webkit.org/show_bug.cgi?id=208088
Relevant demo:
https://codepen.io/aesyondu/pen/KKpNXEX
from whocanuse.
Temporary workaround:
Right click > Paste
from whocanuse.
Absolute legend, thanks!
from whocanuse.
Related Issues (20)
- Need Lightness/Hue sliders for the colour inputs HOT 3
- Localization (Translation) into different languages HOT 5
- Can’t Copypaste Colors HOT 1
- Having more than 8 or more characters breaks the simulation results HOT 3
- How does astigmatism figure into your ratings?
- How does astigmatism figure into your ratings? HOT 1
- There a way for another tool to leverage your work? HOT 3
- Input field text color frequently disobeys WhoCanUse's own color-contrast recommendations HOT 1
- make font size changes also impact the simulation blocks for vision types HOT 1
- Avoid back button trap by using `replaceState` HOT 3
- Ratio for AAA should be 7:1 rather than 7.5:1 HOT 1
- Font size not recognised in URL string HOT 1
- Add SAPC support HOT 3
- 33% of the population has cataracts? HOT 2
- Inverting colors will replace both colors in querystring with the background color HOT 1
- URL parameters are no longer working HOT 3
- Dynamically create color comparison image for social sharing HOT 2
- Pass/Fail is misleading
- Add ability to check larger font sizes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whocanuse.