@@ -151,39 +151,6 @@ impl<T> InputMethod<T> {
151151/// However, one couldn't possibly have a key for every single
152152/// unicode character that the user might want to type. The solution operating systems employ is
153153/// to allow the user to type these using _a sequence of keypresses_ instead.
154- ///
155- /// A prominent example of this is accents—many keyboard layouts allow you to first click the
156- /// "accent key", and then the character you want to apply the accent to. In this case, some
157- /// platforms will generate the following event sequence:
158- ///
159- /// ```ignore
160- /// // Press "`" key
161- /// Ime::Preedit("`", Some((0, 0)))
162- /// // Press "E" key
163- /// Ime::Preedit("", None) // Synthetic event generated to clear preedit.
164- /// Ime::Commit("é")
165- /// ```
166- ///
167- /// Additionally, certain input devices are configured to display a candidate box that allow the
168- /// user to select the desired character interactively. (To properly position this box, you must use
169- /// [`Shell::request_input_method`](crate::Shell::request_input_method).)
170- ///
171- /// An example of a keyboard layout which uses candidate boxes is pinyin. On a latin keyboard the
172- /// following event sequence could be obtained:
173- ///
174- /// ```ignore
175- /// // Press "A" key
176- /// Ime::Preedit("a", Some((1, 1)))
177- /// // Press "B" key
178- /// Ime::Preedit("a b", Some((3, 3)))
179- /// // Press left arrow key
180- /// Ime::Preedit("a b", Some((1, 1)))
181- /// // Press space key
182- /// Ime::Preedit("啊b", Some((3, 3)))
183- /// // Press space key
184- /// Ime::Preedit("", None) // Synthetic event generated to clear preedit.
185- /// Ime::Commit("啊不")
186- /// ```
187154#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
188155pub enum Event {
189156 /// Notifies when the IME was opened.
0 commit comments