Fix ctrl click to open file on windows (#12294)
There were two issues: 1. the `ModifiersChanged` event was never emitted on windows. macOS, x11 and wayland have separate events for this, while on windows they are sent via the usual `keyup` and `keydown` events, but `parse_keydown_msg_keystroke` just ignored them. 2. the word segmenting regex didn't include '\' so paths weren't correctly detected fixes https://github.com/zed-industries/zed/issues/12321 Release Notes: - N/A
This commit is contained in:
parent
e54455bcad
commit
b1cfd46d37
2 changed files with 47 additions and 16 deletions
|
@ -405,7 +405,7 @@ impl TerminalBuilder {
|
|||
let _io_thread = event_loop.spawn(); // DANGER
|
||||
|
||||
let url_regex = RegexSearch::new(r#"(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file://|git://|ssh:|ftp://)[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>"\s{-}\^⟨⟩`]+"#).unwrap();
|
||||
let word_regex = RegexSearch::new(r#"[\$\+\w.\[\]:/@\-~]+"#).unwrap();
|
||||
let word_regex = RegexSearch::new(r#"[\$\+\w.\[\]:/\\@\-~]+"#).unwrap();
|
||||
|
||||
let terminal = Terminal {
|
||||
task,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue