7,334 questions
0
votes
1
answer
46
views
Focus on cancel button
I've upgraded from Bootstrap 4 to 5 and now when Sweetalert2 confirmation is opened at a modal, focus remains on modal at its "close" button.
But when I open Sweetalert2 directly from the ...
3
votes
1
answer
93
views
useEffect is running a function an additional time instead of once per if statement
I have a modal. This modal opens after a user uploads a CSV. They can then make changes to the entries or delete them. The user can Confirm & Continue (go to next page, modal closes) or Upload New ...
1
vote
1
answer
127
views
on iOS26 select lose focus after change value
Steps: I click select, on list select option, list is collapsed. After that on other platforms select stay focused. On iOS26 only (Chrome and Safari both) body gain focus. WebKit in Safari 26 ...
0
votes
1
answer
94
views
Setting the focus in .ascx user controls
I am having some difficulty setting the focus inside an .ascx custom control. Microsoft Copilot advises me to place a txtName.Focus() or Page.SetFocus(txtName) inside the Page_Load event of the .ascx.
...
0
votes
0
answers
20
views
tvOS UITableView shows shadow on top and bottom when manually changing contentOffset
I’m working on a tvOS app using Swift, and I have a UITableView that contains three sections.
For first two sections, each contain a horizontally scrolling UICollectionView.
The last section contains ...
0
votes
1
answer
85
views
How can I Set Focus to an item property in a TreeView
Set Focus to an item property in a TreeView
The TreeView looks like:
<TreeView
Name="Tree"
BorderThickness="0"
ItemsSource="{Binding Items}">
<...
1
vote
0
answers
46
views
Is it possible to "openFilePreserveFocus" without preview mode on VS Code?
I am currently trying to adopt keyboard shortcuts for frequent tasks, where using
the mouse has become cumbersome.
When writting c and c++, I find myself setting up two tab groups and opening make, .h,...
4
votes
3
answers
308
views
HTML link does not get focus outline on receiving focus unless textarea has been focussed explicitly
Example 1 - No focus outline for link
I have a keydown handler for a <textarea>. When the handler gets invoked, I want a link (<a> tag) to receive focus. If you run the example below, ...
2
votes
1
answer
98
views
react-select - focused option resets on React state change
I have a custom component wrapper around a react-select, but I've also noticed this same behavior in the react-select by itself as well. The behavior occurs when using react-select whenever the React ...
0
votes
0
answers
36
views
How to maintain focus in a dynamic Bootstrap dropdown with both search and selection functionality in Angular?
Problem:
I have a form with a dynamic list of dropdowns in Angular, where each dropdown behaves both as a search input and as a normal dropdown. I am using Bootstrap's dropdown-toggle method to handle ...
1
vote
1
answer
71
views
How can screen reader users resume reading after closing a modal window?
I'm building a fully accessible webpage for blind users who rely on screen readers for our study. They can read a document and ask AI assistant questions.
Current design:
The main content is a ...
0
votes
1
answer
63
views
Focus traversal on TextField not working as expected in Flutter
Below code generates UI as follows, here which ever container is selected it gets highlighted with border and its descendants are traversable on tapping tab, other container's children does not get ...
0
votes
0
answers
31
views
Accessibility Issues Loading mfe-base Page in Shell Application
I'm experiencing accessibility issues when loading a page from my mfe-base. When loading my shell application, the displayed page is from mfe-base. The focus is being assigned to an image, which ...
-2
votes
1
answer
72
views
Focused state of a button is not rendered on button.focus() called from a click handler
Demonstration of the problem
const elementSet = {
input: document.querySelector("input"),
buttonToFocusOn: document.querySelector("button:first-of-type"),
buttonFocusOnInput: document....
1
vote
0
answers
81
views
Textbox with RequiredFieldValidator requires 2 clicks (have to click twice)
My first attempt at asking this didn't go well. So, I am trying again, with hopefully more/better details.
I am running into this exact same problem:
RequiredFieldValidator have to click twice
...
3
votes
1
answer
165
views
Weird behavior when focusing on an element [closed]
Clicking on the focus button makes #container move up 1 pixel:
<html>
<body>
<div style="overflow: hidden" id="root">
<div style="margin: -1px" id="container">...
-1
votes
1
answer
83
views
Problem with textbox validation and next control focus
I am validating a textbox (specifically, a Telerik RadTextBox, but I don't think that is the problem). I've tried both RequiredFieldValidator and CustomValidator. When I press Tab, validation works ...
0
votes
2
answers
268
views
Handle Control losing focus between button press and release events
I'm making a small game with Godot, and the player can keep some panels on top of the game display while playing, for easy access to some actions.
The panel is a Control node, and it could appear on ...
2
votes
0
answers
37
views
Give focus to an NSPanel while keeping background apps focused
My app displays an NSPanel when a keyboard shortcut is pressed. This NSPanel needs to be at the .screenSaver level and must become focused to receive keystrokes, but is it possible to keep the ...
0
votes
1
answer
51
views
SwiftUI Position focus inside non empty TextField
I have a TextField that sometimes can be prepopulated with a piece of text to be completed by the user.
I use a FocusState boolean var to get the focus on the field as the view appears.
What I would ...
0
votes
0
answers
59
views
Inputs inside modal don’t focus unless I scroll
I'm building an Airbnb-style React app. The header starts as an expanded version and shrinks once the user scrolls. To detect scroll, I placed a 1px invisible div at the top of the page and observe it ...
0
votes
0
answers
64
views
How to disable blue outline on button when focused material MUI
I have a button component from material mui which I have added some custom styles, but when the button is clicked it gets a blue outline which I dont want. I have tried removing it following advice in ...
0
votes
0
answers
33
views
Trigger callback when N tab stops away from a target element (for smarter prefetching) in JavaScript
I'm building a JavaScript library called ForesightJS for smart prefetching. It currently predicts mouse movements and prefetches content accordingly. I now want to support keyboard users.
Goal:
Given ...
0
votes
0
answers
40
views
Keep page focused while combobox is opened
I'm using a vaadin combobox that is set to be open on page load, so users can see all the options when they are logged in. However, because the combobox is opened they have to click the page twice to ...
-2
votes
1
answer
129
views
Why sometimes escape key causes textarea to lose focus?
I'm using textarea and noticed that hitting escape causes it to lose focus to the body. I tried to isolate it in a minimal example but it doesn't lose focus there. I have stripped all my key and mouse ...
2
votes
1
answer
56
views
Flutter: TextFormField keeps reloading/rebuilding when entering text in a diabetes tracking app
I'm building a diabetes tracking mobile app with Flutter where patients can enter glycemic measurements. I'm experiencing a frustrating issue where whenever the user tries to enter a value in the &...
-1
votes
2
answers
71
views
input.focus() triggered by button event listener on Enter causes a refresh of the page when only a single input exists on the page
React 17.0.2
I am trying to prevent the form from refreshing if there is only a single input field on the page. IF THERE IS MORE THAN ONE INPUT, NO REFRESH, NO PROBLEM This weird behavior only happens ...
0
votes
1
answer
48
views
SQL Server Object Explorer, set focus on table from Query
I have setup a connection to my local SQL Server, over the "SQL Server Object Explorer" in Visual Studio.
Is there a way, built in or maybe with an extension, for setting the focus to a ...
0
votes
0
answers
35
views
How to get focus from onRotateEvent
This simple wear os app in Kotlin has a round screen with a beam which rotates clockwise with constant speed. By rotating the bezel the beam movement can be accelerated or deaccelerated. In case the ...
0
votes
0
answers
146
views
Primeng editable table - edit cancel controls
I use Primeng p-table with edit mode via p-cellEditor however I face multiple issues which makes the table unusable in real world. (you can test this behavior in official example https://primeng.org/...
0
votes
0
answers
92
views
Tizen Web App: Focus style not applied after returning from <video> playback on Samsung TV
I'm developing a Tizen web application using Tizen Studio, targeting Samsung Smart TVs. The app includes a video player using the standard HTML <video> tag. Functionally, everything works fine ...
1
vote
0
answers
340
views
React Native - For accessibility, how to focus on interactive elements inside a bottom sheet?
I'm using @gorhom/react-native-bottom-sheet library (v4.6.4) and need to provide accessibility features to my mobile project, now specifically adding keyboard navigation support, focusing on ...
0
votes
0
answers
183
views
SwiftUI: Pressing TAB key from External Keyboard is not changing Focus from TextField to button when the view is inside a ScrollView
Device: iPhone XR
iOS: 18.3.2
Need to support: iOS 15.0+
I am testing Accessibility with external bluetooth keyboard. I turned on Full Keyboard Access from Accessibility settings of iPhone. My app UI ...
1
vote
1
answer
134
views
How to add outline-offset to Bootstrap-5 focus-ring?
I want to add a small offset to the focus-ring for better accessibility (increased visibility of the focus outline around a button with white space in between the button and the outline). I have a ...
-1
votes
1
answer
63
views
Method Breaks After Implementing Focus Switching
I'm currently working on a concurrent implementation of multiplayer Tetris in JavaFX where each game is run on a separate Stage. Each game has its own set of inputs so you can play simultaneously as ...
1
vote
0
answers
46
views
Several WebBrowser in Window Form and lots of blinking cursors
The problem comes down to a simple explanation.
There are several WebBrowse in the form (Windows Form).
When switching the cursor from one browser to another, a blinking cursor remains in the browser.
...
2
votes
0
answers
79
views
SwiftUI tvOS LazyVGrid Focus Navigation Issue: Can't Move Down When No Direct Below Item
I am building a SwiftUI tvOS app with a LazyVGrid using .adaptive(minimum: 300) columns. The focus behavior works fine for most items, but when an item (like item-9) does not have another item ...
0
votes
1
answer
89
views
Is there a way to switch the focus window upon a key press in JavaFX
Edit: I've cut down Mainboard to just the relevant function to make code shorter to read. If any additional code needs to be read to help understanding, please say
I'm currently making a multiplayer ...
0
votes
2
answers
157
views
Why does FocusState break when a view is pushed on the NavigationStack?
I have a view called TitleList that allows the user to edit the title of a row using a .swipeAction (it will replace the NavigationLink with a TextField).
While a title is being edited, if a user taps ...
1
vote
0
answers
60
views
Ag-grid cell focus moves to another cell when rows are added/removed above it
When adding or removing a row above a focused cell in ag-grid, the focus moves automatically to the cell that gets "in the place" of the previously focused cell.
So if a cell on row 4 is ...
2
votes
3
answers
457
views
Text field not being focused in SwiftUI sheet on macOS
I'm using SwfitUI with macOS. I have two text fields in a sheet, a Picker and a TextField. I want the second TextField to have focus when a boolean is set if the Picker only has a single element (...
0
votes
1
answer
62
views
Terminal Focus Hotkeys? Switching inline split terminal with hotkeys
can somebody please put me out my misery and help me understand which keyboard shortcut switches between split-view terminals in vscode? IE, use CMD + \ to create another split/side terminal to the ...
0
votes
0
answers
44
views
Google Password Manager autofill, affecting focus()
I have a login component which takes a users username, and then sends a One Time Pin when the username is verified to their phone. The component then dynamically updates and shows the OTP input screen....
0
votes
1
answer
100
views
How can I remove the dotted border around the tab in focus in a multi-tabbed PyQt5 window?
I have built a multi-tab window using PyQt5. Each tab has a thin dotted border when in focus:
How do I remove this dotted border? (My operating system is Windows 10 if that matters.)
Here is the ...
0
votes
2
answers
195
views
Focus not clearing jetpack compose android tv
so i have an android tv project and my structure is like this
TvLazyColumn(
state = listState,
pivotOffsets = PivotOffsets(0.15F),
modifier = Modifier
...
0
votes
0
answers
34
views
React Native: How to focus a custom CheckBox on a form required validation?
My checkbox is a Pressable surrounded by a View container. The scenario is as follows: a form with ScrollView where I have several fields and the Checkbox. I'm trying to put focus on the Checkbox View ...
0
votes
0
answers
21
views
Tabindex error in navigation after first element
I`ve got an issue about tabindex an the main navigation of the following Website:
https://www.hafen-mannheim.de/en/
As soon as I reach the navigation, the tabindex stops. If you focus the search field ...
1
vote
0
answers
245
views
How to focus text_editor in rust Iced
I am working with tabular data and I want to be able to edit individual cells by clicking on them using the editor widget that is fixed to the top of the cells in my UI (like excel or google ...
0
votes
1
answer
77
views
Passing @FocusState through Navigation
This is an interesting scenario. While I'm not going to get into designing the viewHandler, assume a parent view has NavigationStack setup where you can append to the navigationPath variable.
Let's ...
0
votes
0
answers
401
views
Struggling to get sensible focus behavior in Jetpack Compose
I'm brand new to Compose and working on a simple Kotlin app to learn; so far I like the paradigm but I definitely don't know what I don't know. One of the Activities in the app displays a LazyColumn ...