Git Product home page Git Product logo

keyzen's Introduction

keyzen's People

Contributors

damienklinnert avatar devdave avatar ds300 avatar gar avatar gerwinbrunner avatar jcplessis avatar morgant avatar wwwtyro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keyzen's Issues

Non-latin languages, e.g. hebrew?

I tried adding hebrew to the code, e.g.:

layouts["hebrew"] = " שדגכחלךףעיקראטוןםפזסבהנמצתץ,.:?"'";

But when I reload, it seems it can't handle the hebrew characters. Any suggestions?

Thanks!!

keyzen

Open Tab Makes Response Slow

On Safari, if I keep the tab pinned, after a while the response slows to a crawl and beach balls. Closing the tab and reopening it seems to solve the issue.

Audio delays and performance issues in Safari on iOS/iPadOS

When used in Safari on iPadOS (14.x) with the Apple Magic Keyboard, the audio playback stutters and causes general performance issues.

Looking at keyzen.js, this may be due to the fact that the Audio element is created, loaded, and then played every time keyHandler() or level_up() is called (see

(new Audio("click.wav")).play();
,
(new Audio("clack.wav")).play();
, and
(new Audio('ding.wav')).play();
). I believe that Safari on iOS/iPadOS doesn't cache media files, so it may be re-fetching the .wavs on every instantiation of Audio.

I'd suggest starting by instantiating the three Audio elements only once and re-using them. If that doesn't work, migrating to the Web Audio API would probably fix it as they all could be loaded under one AudioContext.

Hash (pound) key does not work on UK Mac keyboards

When trying to type the character '#' while using a UK Mac keyboard, nothing happens. This is because a previous commit by @morgant ignores all events which have a modifier key but on UK Macs '#' is typed with alt-3.

I am attaching a pull-request which returns early from the key handler if any of the characters do not exists in the list of characters expected by keyzen. This seems to preserve the intention of the @morgant's commit while fixing the issue with the '#' key (as far as I can tell?).

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.