Merge branch 'master' into jellywx/fix-pageup-pagedown-binds
This commit is contained in:
commit
77114d0320
39 changed files with 1917 additions and 1609 deletions
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use cosmic::widget::menu::key_bind::{KeyBind, Modifier};
|
||||
use cosmic::{
|
||||
iced::core::keyboard::key::Named,
|
||||
iced::keyboard::{Key, Modifiers},
|
||||
iced_core::keyboard::key::Named,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::{BTreeMap, HashMap};
|
||||
|
|
@ -245,11 +245,11 @@ impl ShortcutsConfig {
|
|||
// Remove any matching bindings
|
||||
return false;
|
||||
}
|
||||
if let Some(default_action) = self.defaults.0.get(binding) {
|
||||
if *default_action == reset_action {
|
||||
// Remove binding that overrode a default
|
||||
return false;
|
||||
}
|
||||
if let Some(default_action) = self.defaults.0.get(binding)
|
||||
&& *default_action == reset_action
|
||||
{
|
||||
// Remove binding that overrode a default
|
||||
return false;
|
||||
}
|
||||
true
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue