hearmeneigh / fchat-rising

A heavily modded F-Chat 3.0 client for F-List
https://hearmeneigh.github.io/fchat-rising/
MIT License
39 stars 17 forks source link

Main window has select focus when modals are present #29

Open foxmajik opened 2 years ago

foxmajik commented 2 years ago

If a modal window is open, such as the "edit channel ads" window, using the system select all command causes the text in the main window to be selected. When a model is presented where the primary intent is to edit text in a text box, select focus should be intentionally set to the are where text will be edited.

hearmeneigh commented 2 years ago

That goes by keyboard input focus, I think. If keyboard input is on the textbox, only its text will be selected. I wonder if there's something that could be done with CSS user-select to prevent additional selection.

foxmajik commented 2 years ago

Use the CSS input focus selector. This is extremely basic CSS.

https://www.w3schools.com/cssref/sel_focus.asp