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

Fix keydown not working #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

t-kuni
Copy link

@t-kuni t-kuni commented Mar 2, 2019

Fix that some keydown(ArrowDown, ArrowUp, Enter) shortcut is not working my environment.

My environment is following:

  • windows 10
  • Adobe XD veresion 10.0.42.14

@hasansujon786
Copy link

@tigmium I had the same problem. You relay fixed the issue. Great Work. 🎉
But still your PR hadn't pulled. 😟

@Nicelo
Copy link

Nicelo commented May 14, 2020

I repaired it like this. You can refer to the following。

input.addEventListener("keydown", function (event) {
    if (event.keyCode === 40) {
        if (filtered.length && selectedI < filtered.length - 1) {
            selectedI++;
            gotoArtboard(filtered[selectedI]);
            rerenderList();
        }
    } else if (event.keyCode === 38) {
        if (filtered.length && selectedI > 0) {
            selectedI--;
            gotoArtboard(filtered[selectedI]);
            rerenderList();
        }
    }
});

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

Successfully merging this pull request may close these issues.

None yet

3 participants