Linux
This commit is contained in:
parent
bf577383a5
commit
33606e06e5
1 changed files with 9 additions and 10 deletions
|
@ -718,9 +718,10 @@ impl WaylandWindowStatePtr {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let PlatformInput::KeyDown(event) = input {
|
if let PlatformInput::KeyDown(event) = input
|
||||||
if event.keystroke.modifiers.is_subset_of(&Modifiers::shift()) {
|
&& event.keystroke.modifiers.is_subset_of(&Modifiers::shift())
|
||||||
if let Some(key_char) = &event.keystroke.key_char {
|
&& let Some(key_char) = &event.keystroke.key_char
|
||||||
|
{
|
||||||
let mut state = self.state.borrow_mut();
|
let mut state = self.state.borrow_mut();
|
||||||
if let Some(mut input_handler) = state.input_handler.take() {
|
if let Some(mut input_handler) = state.input_handler.take() {
|
||||||
drop(state);
|
drop(state);
|
||||||
|
@ -729,8 +730,6 @@ impl WaylandWindowStatePtr {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn set_focused(&self, focus: bool) {
|
pub fn set_focused(&self, focus: bool) {
|
||||||
self.state.borrow_mut().active = focus;
|
self.state.borrow_mut().active = focus;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue