From 898867f06cd36da880309444671da5de4bfd60a6 Mon Sep 17 00:00:00 2001
From: NovaBot <154629622+NovaBot13@users.noreply.github.com>
Date: Sat, 30 Dec 2023 12:36:42 -0500
Subject: [PATCH] Makes ListInputModal autofocus (#188)
* Makes ListInputModal autofocus (#80647)
## About The Pull Request
What it says on the tin. You would have to click on the window and press
enter or make your selections, this just lets you skip the clicking
step.
## Why It's Good For The Game
Just makes it a bit nicer to use these.
No clicking involved
![oPuiZ3rl3x](https://github.com/tgstation/tgstation/assets/13398309/c5aa70d2-d6a1-4ba8-a64e-805259b0d345)
## Changelog
:cl:
qol: makes modal list uis autofocus
/:cl:
* Makes ListInputModal autofocus
---------
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
Co-authored-by: NovaBot
---
tgui/packages/tgui/interfaces/ListInputModal.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tgui/packages/tgui/interfaces/ListInputModal.tsx b/tgui/packages/tgui/interfaces/ListInputModal.tsx
index f200d17b367..e45e5736507 100644
--- a/tgui/packages/tgui/interfaces/ListInputModal.tsx
+++ b/tgui/packages/tgui/interfaces/ListInputModal.tsx
@@ -7,7 +7,7 @@ import {
KEY_Z,
} from '../../common/keycodes';
import { useBackend, useLocalState } from '../backend';
-import { Button, Input, Section, Stack } from '../components';
+import { Autofocus, Button, Input, Section, Stack } from '../components';
import { Window } from '../layouts';
import { InputButtons } from './common/InputButtons';
import { Loader } from './common/Loader';
@@ -196,6 +196,7 @@ const ListDisplay = (props) => {
return (
+
{filteredItems.map((item, index) => {
return (