Giter VIP home page Giter VIP logo

Comments (10)

LeaVerou avatar LeaVerou commented on August 24, 2024

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.

PowerMugen avatar PowerMugen commented on August 24, 2024

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.

LeaVerou avatar LeaVerou commented on August 24, 2024

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.

PowerMugen avatar PowerMugen commented on August 24, 2024

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.

LeaVerou avatar LeaVerou commented on August 24, 2024

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.

PowerMugen avatar PowerMugen commented on August 24, 2024

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.

LeaVerou avatar LeaVerou commented on August 24, 2024

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.

codler avatar codler commented on August 24, 2024

I don't know what metaKey is. but AltGr is same as pressing CTRL+ALT

from dabblet.

PowerMugen avatar PowerMugen commented on August 24, 2024

This works fine for this issue (I've tested the fix on localhost) ! Thanks codler

from dabblet.

LeaVerou avatar LeaVerou commented on August 24, 2024

Merged codler's pull request and uploaded the fix. Thank you both!

from dabblet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.