Commit 16f53962 authored by filip mertens's avatar filip mertens Committed by ioedeveloper

use shiftkey

parent 1b06ab89
......@@ -228,7 +228,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
useEffect(() => {
const keyPressHandler = (e: KeyboardEvent) => {
if (e.key === 'Shift') {
if (e.shiftKey) {
setState(prevState => {
return { ...prevState, ctrlKey: true }
})
......@@ -236,7 +236,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
}
const keyUpHandler = (e: KeyboardEvent) => {
if (e.key === 'Shift') {
if (!e.shiftKey) {
setState(prevState => {
return { ...prevState, ctrlKey: false }
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment