Fixed ctrl + k is not working as expected #7824 (#9096)

This commit is contained in:
Shailesh Parmar 2022-12-01 16:08:19 +05:30 committed by GitHub
parent db91a2e1d5
commit 11edcef279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ const GlobalSearchProvider: FC<Props> = ({ children }: Props) => {
if (isCommandKeyPress(event) && event.key === Keys.K) {
setVisible(true);
selectRef.current?.focus();
event.preventDefault();
} else if (event.key === Keys.ESC) {
handleCancel();
}

View File

@ -263,5 +263,5 @@ module.exports = {
},
// Source map
devtool: 'eval-cheap-source-map',
devtool: 'eval-cheap-module-source-map',
};