mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 19:26:09 +00:00
Remove eprintln debug lines
This commit is contained in:
parent
f3528088cd
commit
2932b9de50
@ -110,8 +110,8 @@ impl View for Button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn on_event(&mut self, event: Event) -> EventResult {
|
fn on_event(&mut self, event: Event) -> EventResult {
|
||||||
eprintln!("{:?}", event);
|
// eprintln!("{:?}", event);
|
||||||
eprintln!("{:?}", self.req_size());
|
// eprintln!("{:?}", self.req_size());
|
||||||
match event {
|
match event {
|
||||||
// 10 is the ascii code for '\n', that is the return key
|
// 10 is the ascii code for '\n', that is the return key
|
||||||
Event::Key(Key::Enter) => {
|
Event::Key(Key::Enter) => {
|
||||||
|
@ -375,7 +375,7 @@ impl Dialog {
|
|||||||
Some(pos) => pos,
|
Some(pos) => pos,
|
||||||
};
|
};
|
||||||
|
|
||||||
eprintln!("Rel pos: {:?}", position);
|
// eprintln!("Rel pos: {:?}", position);
|
||||||
|
|
||||||
// Now that we have a relative position, checks for buttons?
|
// Now that we have a relative position, checks for buttons?
|
||||||
if let Some(i) = self.buttons.iter().position(|btn| {
|
if let Some(i) = self.buttons.iter().position(|btn| {
|
||||||
|
Loading…
Reference in New Issue
Block a user