pub struct KeyRules {
pub devtools: bool,
pub reload: bool,
pub history: bool,
pub zoom: bool,
}Expand description
Which groups of browser keys one webview does not act on. Each group is switched by one rule:
devtools by the DevTools decision (a denied webview), the others by the hardening options of
the same name. A key in no active group is left to the browser.
Fields§
§devtools: boolF12, Ctrl+Shift+I / J / C (inspector) and Ctrl+U (view source).
reload: boolF5, Ctrl+R and Ctrl+Shift+R, and the keyboard’s refresh key.
history: boolAlt+Left, Alt+Right and the keyboard’s back and forward keys.
zoom: boolCtrl with plus, minus or zero, on the main block or the number pad.
Trait Implementations§
impl Copy for KeyRules
impl Eq for KeyRules
impl StructuralPartialEq for KeyRules
Auto Trait Implementations§
impl Freeze for KeyRules
impl RefUnwindSafe for KeyRules
impl Send for KeyRules
impl Sync for KeyRules
impl Unpin for KeyRules
impl UnsafeUnpin for KeyRules
impl UnwindSafe for KeyRules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.