Skip to content

Commit

Permalink
small pad key handling tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 12, 2024
1 parent 6e5986b commit 1b3a3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/editor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ pub fn Editor<'a>(
});
}
// Handle open delimiters
"(" | "[" | "{" if !event.meta_key() => {
"(" | "[" | "{" if !os_ctrl(event) => {
// Surround the selected text with delimiters
let (open, close) = match key {
"\"" => ('"', '"'),
Expand Down

0 comments on commit 1b3a3f4

Please sign in to comment.