Skip to content
Snippets Groups Projects
Commit 0bed2af4 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

make entry even faster.

parent a487016a
Branches master
No related tags found
No related merge requests found
...@@ -61,7 +61,13 @@ cuberoot.addEventListener("keydown", function (e) { ...@@ -61,7 +61,13 @@ cuberoot.addEventListener("keydown", function (e) {
if (e.keyCode === 13) { if (e.keyCode === 13) {
check_cuberoot(e); check_cuberoot(e);
} }
}) });
cuberoot.addEventListener("keyup", function (e) {
if (cuberoot.value.length >= 2) {
check_cuberoot(e);
}
});
function humanize_ms(ms) { function humanize_ms(ms) {
if (ms < 1000) { if (ms < 1000) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment