mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
remove some old macros
This commit is contained in:
parent
a82f73d475
commit
f1c7512cbb
18 changed files with 306 additions and 361 deletions
|
|
@ -108,10 +108,10 @@ impl Handle<Tui> for Demo<Tui> {
|
|||
fn handle (&mut self, from: &TuiIn) -> Perhaps<bool> {
|
||||
use KeyCode::{PageUp, PageDown};
|
||||
match from.event() {
|
||||
key_expr!(PageUp) => {
|
||||
kexp!(PageUp) => {
|
||||
self.index = (self.index + 1) % self.items.len();
|
||||
},
|
||||
key_expr!(PageDown) => {
|
||||
kexp!(PageDown) => {
|
||||
self.index = if self.index > 1 {
|
||||
self.index - 1
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue