File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use cosmic::{
1313 event:: { self , Event } ,
1414 futures:: { self , SinkExt } ,
1515 keyboard:: { Event as KeyEvent , Key , Modifiers } ,
16- stream,
16+ mouse , stream,
1717 widget:: scrollable,
1818 window:: { self , Event as WindowEvent } ,
1919 } ,
@@ -2619,6 +2619,10 @@ impl Application for App {
26192619 event:: Status :: Ignored => Some ( Message :: Key ( modifiers, key, text) ) ,
26202620 event:: Status :: Captured => None ,
26212621 } ,
2622+ Event :: Mouse ( mouse:: Event :: ButtonPressed ( mouse:: Button :: Back ) ) => match status {
2623+ event:: Status :: Ignored => Some ( Message :: SelectNone ) ,
2624+ event:: Status :: Captured => None ,
2625+ } ,
26222626 Event :: Window ( WindowEvent :: CloseRequested ) => Some ( Message :: WindowClose ) ,
26232627 _ => None ,
26242628 } ) ,
You can’t perform that action at this time.
0 commit comments