From 9e1a1e7359ca692a97ec86589ea5516cfe96199b Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Tue, 14 Jul 2020 11:14:35 +0200 Subject: [PATCH] widgets: policycheck_view typo cleanup Signed-off-by: Ralf Zerres --- advotracker/src/widgets/policycheck_view.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/advotracker/src/widgets/policycheck_view.rs b/advotracker/src/widgets/policycheck_view.rs index 759b692..61f4db3 100644 --- a/advotracker/src/widgets/policycheck_view.rs +++ b/advotracker/src/widgets/policycheck_view.rs @@ -13,7 +13,7 @@ use crate::{ callbacks::policycheck_state::*, }; -// Macro that initializes the widget structures/variables for our view (essential!) +// Macro that initializes the widget structures/variables for our view widget!( /// Dialog to enter a policy identifier/number. /// This identifier is checked agains a map of valid policy codes. @@ -185,10 +185,11 @@ impl Template for PolicyCheckView { // .on_mouse_down | .on_mouse_move | .on_mouse_up (move |ctx, entity| { // state(id, states).action(Action::AddItem); // }) - // .on_click(move |states, _| { - // state(id, states).action(Action::AddItem); + //.on_key_down(move |ctx, _| { + // ctx.get_mut::(id) + // .action(Action::ImportData); // true - // }) + //}) .build(ctx), ) .child(policy_check_button_result) @@ -297,7 +298,7 @@ impl Template for PolicyCheckView { .enabled(true) .build(ctx); - // Starter page: check policy numbers + // Starter page: check policy numbers self.name("PolicyCheckView") // initialize struct (derived default macro) .policy_check(PolicyCheck::default())