mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Recently changed file
This commit is contained in:
parent
9373d65a16
commit
8bf0641d28
@ -6,6 +6,7 @@ import Button from "@mui/material/Button";
|
||||
import Select, { SelectChangeEvent } from "@mui/material/Select";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import { KEY } from "../../utils/helpers/keyCodes";
|
||||
|
||||
export const PromptEvent = new EventEmitter<[Prompt]>();
|
||||
|
||||
@ -91,7 +92,7 @@ function PromptMenuText({ resolve }: IContentProps): React.ReactElement {
|
||||
const onKeyDown = (event: React.KeyboardEvent<HTMLInputElement>): void => {
|
||||
event.stopPropagation();
|
||||
|
||||
if (event.key === "Enter") {
|
||||
if (event.key === KEY.ENTER) {
|
||||
event.preventDefault();
|
||||
submit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user