File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use cosmic::cctk::sctk;
7
7
use cosmic:: iced:: alignment:: { Horizontal , Vertical } ;
8
8
use cosmic:: iced:: event:: Status ;
9
9
use cosmic:: iced:: id:: Id ;
10
+ use cosmic:: iced:: keyboard:: Modifiers ;
10
11
use cosmic:: iced:: wayland:: actions:: layer_surface:: SctkLayerSurfaceSettings ;
11
12
use cosmic:: iced:: wayland:: actions:: popup:: { SctkPopupSettings , SctkPositioner } ;
12
13
use cosmic:: iced:: wayland:: layer_surface:: {
@@ -298,6 +299,7 @@ impl cosmic::Application for CosmicLauncher {
298
299
let _res =
299
300
tx. blocking_send ( launcher:: Request :: Search ( self . input_value . clone ( ) ) ) ;
300
301
}
302
+ return text_input:: focus ( INPUT_ID . clone ( ) ) ;
301
303
}
302
304
Message :: TabRelease if !self . alt_tab => {
303
305
self . focused = 0 ;
@@ -913,7 +915,7 @@ impl cosmic::Application for CosmicLauncher {
913
915
} ) => match key {
914
916
Key :: Character ( _)
915
917
if matches!( status, Status :: Ignored )
916
- && modifiers. is_empty( )
918
+ && ( modifiers. is_empty( ) || modifiers == Modifiers :: SHIFT )
917
919
&& text. is_some( ) =>
918
920
{
919
921
Some ( Message :: UncapturedInput (
You can’t perform that action at this time.
0 commit comments