picker goto first/last entry is ctrl+Home/End rather than just Home/End

pull/13639/head
Axlefublr 2025-05-29 13:13:11 +08:00
parent 1315b7e2b1
commit 44a8b8dbe8
2 changed files with 4 additions and 4 deletions

View File

@ -455,8 +455,8 @@ See the documentation page on [pickers](./pickers.md) for more info.
| `Tab`, `Down`, `Ctrl-n` | Next entry |
| `PageUp`, `Ctrl-u` | Page up |
| `PageDown`, `Ctrl-d` | Page down |
| `Home` | Go to first entry |
| `End` | Go to last entry |
| `Ctrl-Home` | Go to first entry |
| `Ctrl-End` | Go to last entry |
| `Enter` | Open selected |
| `Alt-Enter` | Open selected in the background without closing the picker |
| `Ctrl-s` | Open horizontally |

View File

@ -1062,10 +1062,10 @@ impl<I: 'static + Send + Sync, D: 'static + Send + Sync> Component for Picker<I,
key!(PageUp) | ctrl!('u') => {
self.page_up();
}
key!(Home) => {
ctrl!(Home) => {
self.to_start();
}
key!(End) => {
ctrl!(End) => {
self.to_end();
}
key!(Esc) | ctrl!('c') => return close_fn(self),