aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index ecd5fdef..3dba1a64 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -449,4 +449,12 @@ mod tests {
mode: mode::NONE,
mods: modifier::NONE
}
+
+ test_process_binding! {
+ name: process_binding_appcursormode_appkeypadmode_nomod_require_appcursor,
+ binding: Binding { mods: modifier::ANY, send: "\x1bOD", mode: mode::APP_CURSOR, notmode: mode::NONE },
+ expect: Some(String::from("\x1bOD")),
+ mode: mode::APP_CURSOR | mode::APP_KEYPAD,
+ mods: modifier::NONE
+ }
}