From bdd80c8af28d9b01733946c600f548dfede42b40 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 26 Apr 2024 18:19:45 +0200 Subject: [PATCH] Add .git-blame-ignore-revs The user has to explicitly opt into this, the file itself documents how to do so. --- .git-blame-ignore-revs | 4 ++++ src/event.rs | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000000..575dbb2b9c --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,4 @@ +# $ git config blame.ignoreRevsFile .git-blame-ignore-revs + +# chore(rustfmt): use nightly +7b0c7b6cb2c62767ca0c73c857b299883f55a883 diff --git a/src/event.rs b/src/event.rs index bc7c18a52c..c8ce291003 100644 --- a/src/event.rs +++ b/src/event.rs @@ -723,7 +723,8 @@ impl From for Modifiers { /// /// A prominent example of this is accents - many keyboard layouts allow you to first click the /// "accent key", and then the character you want to apply the accent to. In this case, some -/// platforms will generate the following event sequence: ```ignore +/// platforms will generate the following event sequence: +/// /// ```ignore /// // Press "`" key /// Ime::Preedit("`", Some((0, 0))) @@ -731,12 +732,14 @@ impl From for Modifiers { /// Ime::Preedit("", None) // Synthetic event generated by winit to clear preedit. /// Ime::Commit("é") /// ``` +/// /// Additionally, certain input devices are configured to display a candidate box that allow the /// user to select the desired character interactively. (To properly position this box, you must use /// [`Window::set_ime_cursor_area`].) /// /// An example of a keyboard layout which uses candidate boxes is pinyin. On a latin keyboard the /// following event sequence could be obtained: +/// /// ```ignore /// // Press "A" key /// Ime::Preedit("a", Some((1, 1)))