mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 16:48:30 +02:00
Prevent vim hotkeys from activating tree in sidebar filter
This commit is contained in:
@@ -173,6 +173,7 @@ function Sidebar({ className }: { className?: string }) {
|
|||||||
|
|
||||||
const handleFilterKeyDown = useCallback(
|
const handleFilterKeyDown = useCallback(
|
||||||
(e: KeyboardEvent<HTMLInputElement>) => {
|
(e: KeyboardEvent<HTMLInputElement>) => {
|
||||||
|
e.stopPropagation(); // Don't trigger tree navigation hotkeys
|
||||||
if (e.key === 'Escape') {
|
if (e.key === 'Escape') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
clearFilterText();
|
clearFilterText();
|
||||||
|
|||||||
Reference in New Issue
Block a user