Add logging to test alt handling

cc #93
This commit is contained in:
Joe Wilm 2017-01-08 17:02:52 -08:00
parent b7f43ac023
commit b920d5d424

View File

@ -368,9 +368,11 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
// Didn't process a binding; print the provided character
if let Some(mut string) = string {
// from ST
println!("process_key got string={:?}, mods={:?}, key={:?}", string, mods, key);
if string.len() == 1 && mods.contains(mods::ALT) {
string.insert(0, '\x1b');
}
println!("process_key sending {:?}", string);
self.ctx.notifier.notify(string.into_bytes());
self.ctx.selection.clear();