mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 22:00:04 -04:00
chore: fix typos from updated typos tool
This commit is contained in:
@@ -250,7 +250,7 @@
|
|||||||
- On Web, fix some `WindowBuilder` methods doing nothing.
|
- On Web, fix some `WindowBuilder` methods doing nothing.
|
||||||
- On Web, fix some `Window` methods using incorrect HTML attributes instead of CSS properties.
|
- On Web, fix some `Window` methods using incorrect HTML attributes instead of CSS properties.
|
||||||
- On Web, fix the bfcache by not using the `beforeunload` event and map bfcache loading/unloading to `Suspended`/`Resumed` events.
|
- On Web, fix the bfcache by not using the `beforeunload` event and map bfcache loading/unloading to `Suspended`/`Resumed` events.
|
||||||
- On Web, fix touch input not gaining or loosing focus.
|
- On Web, fix touch input not gaining or losing focus.
|
||||||
- On Web, fix touch location to be as accurate as mouse position.
|
- On Web, fix touch location to be as accurate as mouse position.
|
||||||
- On Web, handle coalesced pointer events, which increases the resolution of pointer inputs.
|
- On Web, handle coalesced pointer events, which increases the resolution of pointer inputs.
|
||||||
- On Web, implement `Window::focus_window()`.
|
- On Web, implement `Window::focus_window()`.
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ impl Dispatch<WlKeyboard, KeyboardData, WinitState> for WinitState {
|
|||||||
WlKeyboardEvent::Leave { surface, .. } => {
|
WlKeyboardEvent::Leave { surface, .. } => {
|
||||||
let window_id = wayland::make_wid(&surface);
|
let window_id = wayland::make_wid(&surface);
|
||||||
|
|
||||||
// NOTE: we should drop the repeat regardless whethere it was for the present
|
// NOTE: we should drop the repeat regardless whether it was for the present
|
||||||
// window of for the window which just went gone.
|
// window of for the window which just went gone.
|
||||||
keyboard_state.current_repeat = None;
|
keyboard_state.current_repeat = None;
|
||||||
if let Some(token) = keyboard_state.repeat_token.take() {
|
if let Some(token) = keyboard_state.repeat_token.take() {
|
||||||
|
|||||||
@@ -738,7 +738,7 @@ fn wait_for_messages_impl(
|
|||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
// Either:
|
// Either:
|
||||||
// 1. User wants to wait indefinely if timeout is not set.
|
// 1. User wants to wait indefinitely if timeout is not set.
|
||||||
// 2. We failed to get and set high resolution timer and we need something instead of it.
|
// 2. We failed to get and set high resolution timer and we need something instead of it.
|
||||||
let wait_duration_ms = timeout.map(dur2timeout).unwrap_or(INFINITE);
|
let wait_duration_ms = timeout.map(dur2timeout).unwrap_or(INFINITE);
|
||||||
|
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ enum PartialText {
|
|||||||
|
|
||||||
enum PartialLogicalKey {
|
enum PartialLogicalKey {
|
||||||
/// Use the text provided by the WM_CHAR messages and report that as a `Character` variant. If
|
/// Use the text provided by the WM_CHAR messages and report that as a `Character` variant. If
|
||||||
/// the text consists of multiple grapheme clusters (user-precieved characters) that means that
|
/// the text consists of multiple grapheme clusters (user-perceived characters) that means that
|
||||||
/// dead key could not be combined with the second input, and in that case we should fall back
|
/// dead key could not be combined with the second input, and in that case we should fall back
|
||||||
/// to using what would have without a dead-key input.
|
/// to using what would have without a dead-key input.
|
||||||
TextOr(Key),
|
TextOr(Key),
|
||||||
|
|||||||
Reference in New Issue
Block a user