Skip to content

Commit

Permalink
unidentified
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoMadera committed Mar 31, 2024
1 parent 7411c0e commit 6e291a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/CommandLine/CommandLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ function CommandLine(): ReactElement {
return;
}

if (e.key.length === 1 && !isCommand()) {
const isMobileKeyboard = e.key === "Unidentified";

if ((e.key.length === 1 || isMobileKeyboard) && !isCommand()) {
setCaretPosition((prev) => prev + 1);
}

Expand Down Expand Up @@ -297,10 +299,13 @@ function CommandLine(): ReactElement {
}
input {
caret-color: transparent;
width: 0px;
width: 100%;
outline: none;
color: inherit;
border: none;
position: absolute;
top: -10000px;
left: -10000px;
}
@keyframes command-line-blink {
Expand Down

0 comments on commit 6e291a9

Please sign in to comment.