diff --git a/src/ui/widgets/crop_overlay.rs b/src/ui/widgets/crop_overlay.rs index c3f57b8..aef274f 100644 --- a/src/ui/widgets/crop_overlay.rs +++ b/src/ui/widgets/crop_overlay.rs @@ -14,7 +14,6 @@ use cosmic::{ widget::Tree, }, event::{Event, Status}, - keyboard, mouse::{self, Button, Cursor}, }, }; @@ -371,22 +370,6 @@ impl Widget for CropOverlay { return Status::Captured; } } - Event::Keyboard(keyboard::Event::KeyPressed { - key: keyboard::Key::Named(keyboard::key::Named::Enter), - .. - }) => { - if self.selection.has_selection() { - shell.publish(AppMessage::ApplyCrop); - return Status::Captured; - } - } - Event::Keyboard(keyboard::Event::KeyPressed { - key: keyboard::Key::Named(keyboard::key::Named::Escape), - .. - }) => { - shell.publish(AppMessage::CancelCrop); - return Status::Captured; - } _ => {} }