File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ impl Component for App {
336
336
keybind. key == key
337
337
&& keybind. ctrl == modifier. contains ( gdk:: ModifierType :: CONTROL_MASK )
338
338
&& keybind. alt == modifier. contains ( gdk:: ModifierType :: ALT_MASK )
339
+ && keybind. shift == modifier. contains ( gdk:: ModifierType :: SHIFT_MASK )
339
340
} ) {
340
341
sender. input ( AppMsg :: Action ( * action) ) ;
341
342
}
Original file line number Diff line number Diff line change @@ -88,27 +88,45 @@ impl Config {
88
88
Keybind {
89
89
ctrl: false ,
90
90
alt: false ,
91
+ shift: false ,
91
92
key: gdk:: Key :: Escape ,
92
93
action: Action :: Close ,
93
94
} ,
94
95
Keybind {
95
96
ctrl: false ,
96
97
alt: false ,
98
+ shift: false ,
97
99
key: gdk:: Key :: Return ,
98
100
action: Action :: Select ,
99
101
} ,
100
102
Keybind {
101
103
ctrl: false ,
102
104
alt: false ,
105
+ shift: false ,
103
106
key: gdk:: Key :: Up ,
104
107
action: Action :: Up ,
105
108
} ,
106
109
Keybind {
107
110
ctrl: false ,
108
111
alt: false ,
112
+ shift: false ,
109
113
key: gdk:: Key :: Down ,
110
114
action: Action :: Down ,
111
115
} ,
116
+ Keybind {
117
+ ctrl: false ,
118
+ alt: false ,
119
+ shift: true ,
120
+ key: gdk:: Key :: ISO_Left_Tab ,
121
+ action: Action :: Up ,
122
+ } ,
123
+ Keybind {
124
+ ctrl: false ,
125
+ alt: false ,
126
+ shift: false ,
127
+ key: gdk:: Key :: Tab ,
128
+ action: Action :: Down ,
129
+ } ,
112
130
]
113
131
}
114
132
}
@@ -190,6 +208,8 @@ pub struct Keybind {
190
208
pub ctrl : bool ,
191
209
#[ serde( default ) ]
192
210
pub alt : bool ,
211
+ #[ serde( default ) ]
212
+ pub shift : bool ,
193
213
#[ serde( deserialize_with = "Keybind::deserialize_key" ) ]
194
214
pub key : gdk:: Key ,
195
215
pub action : Action ,
You can’t perform that action at this time.
0 commit comments