implement suggestion keyup/keydown keys navigation

This commit is contained in:
yggverse 2025-03-11 10:23:26 +02:00
parent b716fb1f78
commit f6b34352e4
2 changed files with 89 additions and 74 deletions

View file

@ -61,7 +61,7 @@ impl Request {
)
{
if matches!(k, Key::Up | Key::KP_Up | Key::Page_Up | Key::KP_Page_Up) {
if !suggestion.to_back() {
if !suggestion.back() {
entry.error_bell()
}
return Propagation::Stop;
@ -69,7 +69,7 @@ impl Request {
k,
Key::Down | Key::KP_Down | Key::Page_Down | Key::KP_Page_Down
) {
if !suggestion.to_next() {
if !suggestion.next() {
entry.error_bell()
}
return Propagation::Stop;