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

superkeyboardchange is not passing value #15

Open
fuleinist opened this issue Oct 4, 2019 · 1 comment
Open

superkeyboardchange is not passing value #15

fuleinist opened this issue Oct 4, 2019 · 1 comment

Comments

@fuleinist
Copy link

fuleinist commented Oct 4, 2019

aframe@0.9.2
aframe-super-keyboard@2.0.2

    var sceneEl = document.querySelector('a-scene');
    var keyboardEl= sceneEl.components['super-keyboard'];
    keyboardEl.addEventListener('superkeyboardchange', function(e) {console.log(e)});

console return 'undefined' always...
error is also emitted:
Uncaught TypeError: Cannot read property 'key' of null at line below

    setTimeout(function () {
      self.updateKeyColorPlane(self.keyHover.key, self.keyHoverColor);
    }, 100);
@feiss
Copy link
Contributor

feiss commented Oct 31, 2020

is the super-keyboard component actually attached to the scene? it should be attached to an entity. Maybe that's the reason it doesn't work.

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

2 participants