Questions tagged [focus]
Focus indicates the component of the graphical user interface which is currently selected to receive input.
focus
7,327
questions
0
votes
0
answers
14
views
How to show paste menu in BasicTextField with FocusRequester
How to show paste menu in BasicTextField with FocusRequester.
I have click area (Row) with focusRequester.requestFocus().
On long click on the Row, the cursor must be set to BasicTextField and must be ...
0
votes
1
answer
52
views
I'm not able to find what e.preventDefault() does in trapFocus function
I understand what the function does, but I don't really know what does e.preventDefault() do. I know that prevents the default behaviour from the keydown event, but I don't really know which behaviour ...
0
votes
0
answers
39
views
Detect browser out of focus
I want to detect when the browser goes out of focus. More specifically, here is my case:
I have my page opened and when I change the tab, it can be detected using visibilitychange. But when I go to ...
0
votes
2
answers
116
views
Can't find CSS selector to style Shadow DOM delegated focus
EDIT 1+
Ok, sorry for the wild goose chase. this appears to be a straight forward CSS issue. In the light DOM: -
#disTick::part(endo) {
box-shadow: inset 0px 1px 1px rgba(0,0,0,0.5), 0px 1px 0px ...
0
votes
0
answers
7
views
how to update a VS2022 form from another namesapace
i am a relatively inexperienced/casual VS2022 programmer. i know enough to get into problems. i have a windows form application that is part of a calibration system. The main form that starts has ...
0
votes
1
answer
69
views
C# WPF ListView SelectedItem keep value on lost focus
Problem: Losing ListView Item focus and as a consequence reset of SelectedItem property when I try to push button on another panel different from panel with ListView. I need to keep focus (optional) ...
0
votes
0
answers
53
views
FocusRequester / requestFocus inconsistent / Not working
Trying to use the FocusRequester on a Snackbar item and get it to gain focus on entry. But for some reason nothing I’m doing works.
val focusRequester = remember { FocusRequester() }
val modifier = ...
0
votes
0
answers
116
views
move focus with focusState swiftUI
I have a sample code where the focus works the way I need it to. when entering a character, the focus moves to the next textField.
struct CheckField: View {
@State private var texts = Array(...
0
votes
0
answers
29
views
Android Camera 2 API , Focus Distance and EV Control query
I'm developing an Android app that requires taking multiple photos at various focal distances, with each focal distance having a range of exposure values for focus stacking and exposure bracketing, ...
0
votes
0
answers
34
views
dropdown is closing quickly without any action when tried to open it. it is a motif Xt library based application
dropdown is closing quickly without any action when tried to open it. it is a motif Xt library based application.
there is textboxes present in the same window and it have a call back functions for ...
1
vote
1
answer
196
views
React Native input field losing focus after typing character
Every time I type a character into any of my input fields, it will lose focus and I can't continue typing unless I click back into the input field.
Here is my login form. I checked to make sure that ...
0
votes
0
answers
62
views
text field focus swiftUI
I have word for example "Hello [friend]".
I take symbols what inside brackets "[]" and change them to textFields.
and I need to make focus for it, when screen appear focus should ...
0
votes
1
answer
19
views
Andorid device Keyboard is hiding the Text Field in a iframe
I am loaded a url using iframe in react.
Withing the iframe, the src being loaded has a text field. When trying to type in that TextField, the device keypad is hiding the Textfield.
If the same url is ...
0
votes
1
answer
44
views
Why is focusing an html element with the keyboard different than focusing with the mouse?
I'm trying to style an element based on whenever it's focused (either by holding a mouseclick on it, or while selecting it using the tab key), but I'm having different behaviors depending on which ...
0
votes
1
answer
768
views
How manage focus and blur in Angular 17 and Angular Materials
I want to manage focus in my app. In login i want, thats field 'code' focused, after server return result 'true"
@ViewChild('telephone') telephone!:ElementRef<any>
@ViewChild('code') ...