Allow alternate shortcuts on Windows (#456)

This commit is contained in:
Tiago Ferreira
2021-06-03 17:39:55 +02:00
committed by GitHub
parent 4964d762a7
commit 2cdd90b111
2 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -899,7 +899,7 @@ fn on_key_press<S: TextBuffer>(
};
Some(CCursorPair::one(ccursor))
}
Key::Delete => {
Key::Delete if !(cfg!(target_os = "windows") && modifiers.shift) => {
let ccursor = if modifiers.mac_cmd {
delete_paragraph_after_cursor(text, galley, cursorp)
} else if let Some(cursor) = cursorp.single() {