Comments (10)
The keyboard shortcut for the results tab is Cmd or Ctrl + 3. Is it possible that AltGr triggers that combination? I just tried my AltGr and nothing happened. Are you pressing it on its own or with some other key (3 maybe?)
from dabblet.
Yes. It's w/ Alt gr + 3
the Alt gr can have the same action has cmd?
I'm on win 7 64bits btw.
I'll test more w/ copy paste # tomorrow.
from dabblet.
Oh damn, Chrome probably sets evt.metaKey
to true
for AltGr. Bad, bad Chrome (and whatever other UA does that) :(
I'll try to think of a way to solve this.
from dabblet.
Just tested with firefox 8 at work, and same issue when I type altGr + 3 it's get me on the result tab.
I'll type alt + 35 to test ;)
from dabblet.
Even though I don't have an azerty keyboard to test, since more than one person mentioned this issue, I'm marking it as "confirmed". Still no idea how to fix though. There has to be a way to detect azerty keyboards. Otherwise the only solution is customizing the shortcuts, which is a planned feature anyway.
from dabblet.
On windows ctrl + 3 get the result tab has expected.
I've made some tests here :
http://www.quirksmode.org/js/keys.html
and it seems that on a french azerty keyboard on windows atlGr is the same has pressing "ctrl + alt", the key has the same code and same event
has pressing ctrl + alt (which I had no idea)
Then the way to solve is perhaps to test that pressing "ctrl + key + 3" don't give the result tab.
Because btw when I press "ctrl + space +3" or "ctrl + tab + 3" the shortcut style works and I'm on the resutls tab.
Don't know how you can correct these, but know I understand why it happens.
But I think it is not related to the metaKey (used for Mac cmd I think) because it appears that this Key is not working on windows
referring to http://www.quirksmode.org/dom/w3c_events.html#keyprops
Hope this can help.
from dabblet.
The problem is that you can't really test that kind of interaction to see if evt.metaKey
or evt.ctrlKey
is true when AltGr is pressed. :(
from dabblet.
I don't know what metaKey is. but AltGr is same as pressing CTRL+ALT
from dabblet.
This works fine for this issue (I've tested the fix on localhost) ! Thanks codler
from dabblet.
Merged codler's pull request and uploaded the fix. Thank you both!
from dabblet.
Related Issues (20)
- Better javascript
- Minor JS issue for IE9 HOT 2
- Inline CSS previewers don't handle HTML entities/escapes in style attributes HOT 1
- Line break lost after paste HOT 2
- Enabling the <script> tags. HOT 5
- JavaScript Syntax Error (Does not show location)
- Why not integrate Codemirror or Ace? HOT 1
- Tab-switching shortcuts stop working after switching to Results tab
- Typo in CSS of 'Circular Text' HOT 1
- Import snipet into Silex with an API HOT 2
- adding images from local memory HOT 2
- line error in editor HOT 3
- This request has been blocked; HOT 1
- Validator returns 415 eror
- Can No Longer Save Gists/Dabblets Anonymously HOT 1
- my menu does not work HOT 1
- Nothing serious, description is removed.
- Log in issue HOT 13
- 404 Error - Link to: View Full Page Result HOT 2
- Why dabblet still not save codes and not login with GitHub HOT 1
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 dabblet.