From 08ead3d549d8e6ed54fa7659d4399a8fb10be6ce Mon Sep 17 00:00:00 2001 From: Draconizations Date: Mon, 30 May 2022 10:48:51 +0200 Subject: [PATCH] feat(dashboard): make list filter modes keyboard accessible --- dashboard/src/lib/group/List.svelte | 8 ++++---- dashboard/src/lib/member/List.svelte | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dashboard/src/lib/group/List.svelte b/dashboard/src/lib/group/List.svelte index 164de4b8..1b16e6d5 100644 --- a/dashboard/src/lib/group/List.svelte +++ b/dashboard/src/lib/group/List.svelte @@ -254,10 +254,10 @@ - memberSearchMode = "include"}>{@html memberSearchMode === "include" ? "include" : "include"} - | memberSearchMode = "exclude"}>{@html memberSearchMode === "exclude" ? "exclude" : "exclude"} - | memberSearchMode = "match"}>{@html memberSearchMode === "match" ? "exact match" : "exact match"} - | memberSearchMode = "none"}>{@html memberSearchMode === "none" ? "none" : "none"} + memberSearchMode = "include"} on:keyup={e => e.key === "Enter" ? memberSearchMode = "include" : ""} tabindex={0}>{@html memberSearchMode === "include" ? "include" : "include"} + | memberSearchMode = "exclude"} on:keyup={e => e.key === "Enter" ? memberSearchMode = "exclude" : ""} tabindex={0}>{@html memberSearchMode === "exclude" ? "exclude" : "exclude"} + | memberSearchMode = "match"} on:keyup={e => e.key === "Enter" ? memberSearchMode = "match" : ""} tabindex={0}>{@html memberSearchMode === "match" ? "exact match" : "exact match"} + | memberSearchMode = "none"} on:keyup={e => e.key === "Enter" ? memberSearchMode = "none" : ""} tabindex={0}>{@html memberSearchMode === "none" ? "none" : "none"} Includes every group with any of the members. Excludes every group with any of the members, opposite of include. Only includes groups which have all the members selected. diff --git a/dashboard/src/lib/member/List.svelte b/dashboard/src/lib/member/List.svelte index fb4e5c54..33efa25a 100644 --- a/dashboard/src/lib/member/List.svelte +++ b/dashboard/src/lib/member/List.svelte @@ -253,10 +253,10 @@ - groupSearchMode = "include"}>{@html groupSearchMode === "include" ? "include" : "include"} - | groupSearchMode = "exclude"}>{@html groupSearchMode === "exclude" ? "exclude" : "exclude"} - | groupSearchMode = "match"}>{@html groupSearchMode === "match" ? "exact match" : "exact match"} - | groupSearchMode = "none"}>{@html groupSearchMode === "none" ? "none" : "none"} + groupSearchMode = "include"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "include" : ""} tabindex={0}>{@html groupSearchMode === "include" ? "include" : "include"} + | groupSearchMode = "exclude"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "exclude" : ""} tabindex={0}>{@html groupSearchMode === "exclude" ? "exclude" : "exclude"} + | groupSearchMode = "match"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "match" : ""} tabindex={0}>{@html groupSearchMode === "match" ? "exact match" : "exact match"} + | groupSearchMode = "none"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "none" : ""} tabindex={0}>{@html groupSearchMode === "none" ? "none" : "none"} Includes every member who's a part of any of the groups. Excludes every member who's a part of any of the groups, the opposite of include. Only includes members who are a part of every group.