Questions tagged [focus]
Focus indicates the component of the graphical user interface which is currently selected to receive input.
focus
7,325
questions
0
votes
0
answers
17
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. ...
1
vote
1
answer
37
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 "...
-1
votes
1
answer
29
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 ...
0
votes
0
answers
25
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 ...
0
votes
1
answer
16
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 ...
2
votes
1
answer
231
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 ...
1
vote
0
answers
52
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 ...
0
votes
0
answers
11
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 () {...
0
votes
2
answers
89
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 ...
0
votes
1
answer
41
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 ...
-2
votes
0
answers
49
views
SwiftUI: Changing ListView Row Background Color Based on Focus During Scrolling
I'm trying to change the background color of rows in a ListView while scrolling in SwiftUI. I've attempted the following code, but it's not working as expected
List {
ForEach(viewModel.menuItems) {...
0
votes
0
answers
14
views
Compose Focus Order Not making any sense
I have a pretty basic layout.
val focusRequesters = List(3) { FocusRequester() }
Column(
modifier = Modifier.
focusProperties {
next = focusRequesters[0]
}
) {
Box ...
2
votes
1
answer
41
views
How do I set focus on a div in React in order to trigger an effect with onBlur?
I'm working on a pretty basic note taking app with React. Purely a front end question.
On a sidebar I have a list of all the current notes, which the user can use to swap between them. Each note ...
0
votes
0
answers
22
views
scrollIntoView not working when the component is out of focus, on chromium based browsers
I'm building a react single page app and have noticed that the scrollIntoView function does not work on chrome based browsers (tested on edge&chrome) when the component is out of focus.
I have a ...
0
votes
0
answers
48
views
How to control focus events in tkinter with root.overrideredirect(True)?
Details:
Python 3.12.3
The tkinter <FocusOut> event should be triggered when the window looses focus. This works just fine in normal windows, but when I do root.overrideredirect(True), the ...