Skip to main content

Questions tagged [focus]

Focus indicates the component of the graphical user interface which is currently selected to receive input.

0 votes
0 answers
12 views

How to manually set focus on element in a shadow DOM (Lit Web Component)

I'm building a select/dropdown component as a Lit web component. To have consistent styling, this is NOT using a native select. I'm using divs and adding logic to have them appear when and where ...
ineedtoknow's user avatar
  • 1,559
0 votes
0 answers
10 views

React 18 content editable field focus issue

I am working on a quiz application where answers to a question are managed with content editable. I use React 18 for front-end development. I use Dummy options(id= 0) to add options faster and allow ...
Sreelakshmi M's user avatar
0 votes
1 answer
27 views

using :focus without a button or link?

Is it possible to use :focus without having a button or link to focus something? I'm trying to put the code into a game which "doesn't allow" buttons and when I try using <a href="#&...
hallodu's user avatar
0 votes
2 answers
45 views

Lost focus on one input effects all inputs

I have created an application form with a validation function that requires the user to input the correct information within the boxes before clicking away from that focused box or an error message ...
ryanl's user avatar
  • 31
0 votes
1 answer
34 views

using :focus to show something with a button

I have a question regarding :focus. I want to have a button/text that shows <div class="contentbox2"> when clicked, but i'm really struggling with that. I tried several ways but i can ...
hallodu's user avatar
0 votes
0 answers
19 views

Compose focus requester never works

Despite all the examples here, even the hacky solutions using a delay, nothing seems to work. The focus needs to happen on recomposition when an error flag is true validating a username or a password. ...
DevinM's user avatar
  • 1,243
1 vote
1 answer
38 views

Prevent focus on specific elements jQuery

OK, I have a weird need. I'm not trying to trap focus inside of a specific div, I'm trying to prevent it from entering specific other ones. I have a script which changes the class on a div from "...
DeanH's user avatar
  • 497
-1 votes
1 answer
35 views

Website no longer recognizes popup window name. Javascript

Tell me if this makes any sense. I have been accessing a website through a popup window for years. using window.open('https://example.com',mypopup,parameters); I click a button in my main window, and ...
CheeseFlavored's user avatar
0 votes
0 answers
28 views

Pressing "enter" focuses on the dialog instead of the other fields

On my main page, I render a table that shows some orders. When the user clicks on any of the orders, a Dialog opens up with an additional table showing the products related to the order. The first two ...
Alessandro Cecchini's user avatar
0 votes
1 answer
22 views

SwiftUI Checkbox focus ring too large and off-center--is this bug?

This code demonstrates the problem: the checkbox's focus ring is too large and off-center on macOS 14.5. (I haven't checked other macOS versions. Also note, this is not an iOS question.) import ...
pfurbacher's user avatar
  • 1,823
2 votes
1 answer
244 views

How to prevent my window from gaining input focus?

I am implementing an AutoComplete, but one that will match text anywhere in the list of enumerated strings—rather than just the beginning of a suggestion as is the behavior of the built-in ...
Ian Boyd's user avatar
  • 253k
1 vote
0 answers
58 views

How to fix cursor behaviour in custom TextField in Flutter?

I have created a custom TextField, where there need to be the following things: The possibility to pass a custom controller, so that when the user scans a barcode, I can update the text with the ...
Pandruz's user avatar
  • 427
0 votes
0 answers
15 views

Selectize force blur when using keyboard navigation

I'm trying to add and remove a focus class to selectize but i can't seem to get it to work at all when navigating using a keyboard only. It works fine when using a mouse. var focusEvent = function () {...
blu's user avatar
  • 393
0 votes
2 answers
105 views

.Net Maui Android cannot hide keyboard

UPDATED - Trimmed down user control: using CommunityToolkit.Maui.Core.Platform; using CommunityToolkit.Mvvm.Input; using System.Diagnostics; namespace GSL.Presentation.CustomControls; public partial ...
George M Ceaser Jr's user avatar
0 votes
1 answer
50 views

Find out which field in SAP has focus / is the active field with VBA (Excel)

I write scripts in VBA to change data via SAP GUI. I can easily set focus to a defined field in SAP GUI (e.g. Session.FindById("wnd[0]/usr/ctxt[2]").SetFocus). But how can I find out what ...
Fluppi's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
489