7,341 questions
0
votes
1
answer
48
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
1
answer
59
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
143
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">...
0
votes
1
answer
62
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
71
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
29
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
31
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
29
views
Inputs inside modal don’t focus unless I scroll — possibly caused by invisible observer div
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
45
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
31
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
43
views
Qt Styling QTreeWidget : Remove Focus on Icons
I have a problem while I was trying to apply a QSS Stylesheet to my QTreeWidget on my Qt project. When I click on an item the icon of the item inside the QTreeWidget change color and goes blue.
I am ...
0
votes
0
answers
35
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 ...
1
vote
0
answers
30
views
Mantine 7 searchable Select inside iframe (Flutter desktop) traps focus and prevents selecting new option after scrolling
I'm embedding a Mantine 7 Select component inside an iframe (used in a Flutter desktop app), and I'm facing a very specific bug with the searchable mode.
?? The Issue
After a user selects an option ...
-2
votes
1
answer
99
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
49
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 &...