From 5630f93b71b85d59721ff4a345a1dea16150d63a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 24 May 2024 13:43:31 -0700 Subject: [PATCH] debug: add some debug logs for keyboard note selection Signed-off-by: William Casarin --- src/timeline.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timeline.rs b/src/timeline.rs index 52959425..2871d9fa 100644 --- a/src/timeline.rs +++ b/src/timeline.rs @@ -11,7 +11,7 @@ use std::cell::RefCell; use std::cmp::Ordering; use std::rc::Rc; -use log::warn; +use log::{debug, warn}; #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub struct NoteRef { @@ -97,6 +97,7 @@ impl TimelineView { } pub fn select_down(&mut self) { + debug!("select_down {}", self.selection + 1); if self.selection + 1 > self.notes.len() as i32 { return; } @@ -105,6 +106,7 @@ impl TimelineView { } pub fn select_up(&mut self) { + debug!("select_up {}", self.selection - 1); if self.selection - 1 < 0 { return; }