summaryrefslogtreecommitdiffstats
path: root/core/src/keyboard
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-04-30 14:20:52 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-04-30 14:20:52 +0200
commit68e9eb0a9b45b86713ce5d0e9c2273a60f2cc11c (patch)
treeb60c4f355d956e9d5eafc0047dfda77b7433bf0e /core/src/keyboard
parentac35fe3edf78c1674fe85b37549002e006b0ff13 (diff)
downloadiced-68e9eb0a9b45b86713ce5d0e9c2273a60f2cc11c.tar.gz
iced-68e9eb0a9b45b86713ce5d0e9c2273a60f2cc11c.tar.bz2
iced-68e9eb0a9b45b86713ce5d0e9c2273a60f2cc11c.zip
Fix broken intra-doc links in documentation
Diffstat (limited to 'core/src/keyboard')
-rw-r--r--core/src/keyboard/modifiers.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/keyboard/modifiers.rs b/core/src/keyboard/modifiers.rs
index e61f145a..ff5b08f2 100644
--- a/core/src/keyboard/modifiers.rs
+++ b/core/src/keyboard/modifiers.rs
@@ -41,21 +41,29 @@ impl Modifiers {
};
/// Returns true if the [`SHIFT`] key is pressed in the [`Modifiers`].
+ ///
+ /// [`SHIFT`]: Self::SHIFT
pub fn shift(self) -> bool {
self.contains(Self::SHIFT)
}
/// Returns true if the [`CTRL`] key is pressed in the [`Modifiers`].
+ ///
+ /// [`CTRL`]: Self::CTRL
pub fn control(self) -> bool {
self.contains(Self::CTRL)
}
/// Returns true if the [`ALT`] key is pressed in the [`Modifiers`].
+ ///
+ /// [`ALT`]: Self::ALT
pub fn alt(self) -> bool {
self.contains(Self::ALT)
}
/// Returns true if the [`LOGO`] key is pressed in the [`Modifiers`].
+ ///
+ /// [`LOGO`]: Self::LOGO
pub fn logo(self) -> bool {
self.contains(Self::LOGO)
}