From 49f444dfe9316859ab0bbc00c75878315dfbcd81 Mon Sep 17 00:00:00 2001 From: Brian Hoang Date: Sat, 26 Oct 2019 15:30:27 +0100 Subject: [PATCH 1/2] auto focus on search bar and made searchbar and text area tab-able --- src/web/html/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/html/index.html b/src/web/html/index.html index 4063e138..35ce6860 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -168,7 +168,7 @@
Operations
- +
    @@ -266,7 +266,7 @@
    - +
    From 726bf3345e3305d658c2de68bd4027db3ce2c6cf Mon Sep 17 00:00:00 2001 From: n1474335 Date: Sun, 27 Oct 2019 14:38:55 +0000 Subject: [PATCH 2/2] Added tabindex to ingredients --- src/web/HTMLIngredient.mjs | 15 ++++++++++++++- src/web/html/index.html | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index 6f3f5e66..03f4e983 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -31,7 +31,9 @@ class HTMLIngredient { this.target = config.target; this.defaultIndex = config.defaultIndex || 0; this.toggleValues = config.toggleValues; - this.id = "ing-" + this.app.nextIngId(); + this.ingId = this.app.nextIngId(); + this.id = "ing-" + this.ingId; + this.tabIndex = this.ingId + 2; // Input = 1, Search = 2 this.min = (typeof config.min === "number") ? config.min : ""; this.max = (typeof config.max === "number") ? config.max : ""; this.step = config.step || 1; @@ -56,6 +58,7 @@ class HTMLIngredient { @@ -69,6 +72,7 @@ class HTMLIngredient { @@ -82,6 +86,7 @@ class HTMLIngredient { @@ -104,6 +109,7 @@ class HTMLIngredient { `; for (i = 0; i < this.value.length; i++) { @@ -157,6 +165,7 @@ class HTMLIngredient { @@ -215,6 +225,7 @@ class HTMLIngredient { @@ -244,6 +255,7 @@ class HTMLIngredient { @@ -256,6 +268,7 @@ class HTMLIngredient { +
      @@ -266,7 +266,7 @@
      - +