fix most typos, add crate-ci/typos to CI (#2653)

* fix most typos, add crate-ci/typos to CI

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Tristan F.andJonathan Kelley authored and GitHub committed 2024-07-23 17:49:33 -07:00
1 parent 841b447d2a
commit 9167cd9dec
83 files changed
+258 -203

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ impl DesktopService {
}
/// Create a wry event handler that listens for wry events.
/// This event handler is scoped to the currently active window and will only recieve events that are either global or related to the current window.
/// This event handler is scoped to the currently active window and will only receive events that are either global or related to the current window.
///
/// The id this function returns can be used to remove the event handler with [`DesktopContext::remove_wry_event_handler`]
pub fn create_wry_event_handler(
+4 -4
View File
@@ -158,11 +158,11 @@ impl IntoAccelerator for &str {
}
}
pub trait IntoModifersState {
pub trait IntoModifiersState {
fn into_modifiers_state(self) -> Modifiers;
}
impl IntoModifersState for ModifiersState {
impl IntoModifiersState for ModifiersState {
fn into_modifiers_state(self) -> Modifiers {
let mut modifiers = Modifiers::default();
if self.shift_key() {
@@ -182,7 +182,7 @@ impl IntoModifersState for ModifiersState {
}
}
impl IntoModifersState for Modifiers {
impl IntoModifiersState for Modifiers {
fn into_modifiers_state(self) -> Modifiers {
self
}
@@ -295,7 +295,7 @@ impl IntoKeyCode for dioxus_html::KeyCode {
dioxus_html::KeyCode::GraveAccent => Code::Backquote,
dioxus_html::KeyCode::OpenBracket => Code::BracketLeft,
dioxus_html::KeyCode::BackSlash => Code::Backslash,
dioxus_html::KeyCode::CloseBraket => Code::BracketRight,
dioxus_html::KeyCode::CloseBracket => Code::BracketRight,
dioxus_html::KeyCode::SingleQuote => Code::Quote,
key => panic!("Failed to convert {:?} to tao::keyboard::KeyCode, try using tao::keyboard::KeyCode directly", key),
}