Fix next/prev shortcuts handling in the File Finder (#9785)

This PR fixes the unexpected File Finder behaviour described in
https://github.com/zed-industries/zed/pull/8782#issuecomment-2018551041

Any change of the modifier keys except for the release of the initial
modifier keys now prevents opening the selected file.

Release Notes:

- N/A
This commit is contained in:
Andrew Lygin 2024-03-26 00:06:37 +03:00 committed by GitHub
parent bdea804c48
commit 1b4c82dc2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 137 additions and 8 deletions

View file

@ -213,6 +213,14 @@ impl Modifiers {
}
}
/// helper method for Modifiers with just control
pub fn control() -> Modifiers {
Modifiers {
control: true,
..Default::default()
}
}
/// helper method for Modifiers with just shift
pub fn shift() -> Modifiers {
Modifiers {