dbappobj highlight

This commit is contained in:
SPRINX0\prochazka
2024-11-20 08:16:13 +01:00
parent 598674a7e0
commit 5db8f11fd6
3 changed files with 27 additions and 2 deletions

View File

@@ -7,6 +7,8 @@
export let getSelectedObject;
export let selectedObjectMatcher;
let isListFocused = false;
function handleKeyDown(ev) {
function selectByDiff(diff) {
const selected = getSelectedObject();
@@ -26,7 +28,18 @@
}
</script>
<div tabindex="0" on:keydown={handleKeyDown} class="wrapper">
<div
tabindex="0"
on:keydown={handleKeyDown}
class="wrapper"
class:app-object-list-focused={isListFocused}
on:focus={() => {
isListFocused = true;
}}
on:blur={() => {
isListFocused = false;
}}
>
<slot />
</div>