mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement suggestion keyup/keydown keys navigation
This commit is contained in:
parent
b716fb1f78
commit
f6b34352e4
2 changed files with 89 additions and 74 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue