Skip to content

Commit 29dde95

Browse files
committed
macOS and iOS share keyboard navigation behavior (#47)
1 parent b58603f commit 29dde95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/core/items/text.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,10 +1269,10 @@ impl core::convert::TryFrom<char> for TextCursorDirection {
12691269
key_codes::DownArrow => Self::NextLine,
12701270
key_codes::PageUp => Self::PageUp,
12711271
key_codes::PageDown => Self::PageDown,
1272-
// On macos this scrolls to the top or the bottom of the page
1273-
#[cfg(not(target_os = "macos"))]
1272+
// On macOS and iOS this scrolls to the top or the bottom of the page
1273+
#[cfg(not(target_vendor = "apple"))]
12741274
key_codes::Home => Self::StartOfLine,
1275-
#[cfg(not(target_os = "macos"))]
1275+
#[cfg(not(target_vendor = "apple"))]
12761276
key_codes::End => Self::EndOfLine,
12771277
_ => return Err(()),
12781278
})

0 commit comments

Comments
 (0)