mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 07:10:02 +00:00
QFix Notification selection (#3469)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
dcabd43cb5
commit
14dd02ff90
@ -68,6 +68,7 @@
|
||||
changeSelected(selected)
|
||||
} else {
|
||||
selected = index
|
||||
changeSelected(selected)
|
||||
markAsRead(selected)
|
||||
}
|
||||
}
|
||||
@ -127,11 +128,13 @@
|
||||
key.stopPropagation()
|
||||
key.preventDefault()
|
||||
selected--
|
||||
changeSelected(selected)
|
||||
}
|
||||
if (key.code === 'ArrowDown') {
|
||||
key.stopPropagation()
|
||||
key.preventDefault()
|
||||
selected++
|
||||
changeSelected(selected)
|
||||
}
|
||||
if (key.code === 'Enter') {
|
||||
key.preventDefault()
|
||||
@ -159,6 +162,7 @@
|
||||
on:keydown={onKeydown}
|
||||
on:click={() => {
|
||||
selected = i
|
||||
changeSelected(selected)
|
||||
}}
|
||||
/>
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user