Skip to main content

Questions tagged [focus]

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

-2 votes
0 answers
55 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) {...
Prasanna Kumar Komminani's user avatar
0 votes
0 answers
16 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 ...
Cayce K's user avatar
  • 2,318
2 votes
1 answer
44 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 ...
OptimusGrime's user avatar
0 votes
0 answers
23 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 ...
SassyPantsy's user avatar
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 ...
Ayman Al-mankkadhi's user avatar
0 votes
0 answers
6 views

input type date focus color change

How to change the input type date focus default color blue to some other color. The default focus color is coming blue. how to change the mm selected default blue color. The default blue color coming ...
Mathi's user avatar
  • 21
0 votes
0 answers
36 views

SwiftUI AccessibilityFocusState not working in Lists

I have a view shown as a crouton (from bottom view) when tapping a button. I want to move accessibility focus to this view when shown but using AccessibilityFocusState only works if the button is NOT ...
rai212's user avatar
  • 751
0 votes
0 answers
30 views

NVDA overrides eventListeners on arrow keys 38 and 40 with its own behavior for that

The "handleAccordionKeyDown" function enables arrow key navigation in an accordion. If the first accordion element, a link, is focused with the tab key, arrow key navigation is activated. ...
gbecker's user avatar
  • 11
0 votes
0 answers
78 views

How to properly pass destinations to a TVFocusGuideView in React Native

I'm having trouble with focus redirection using TVFocusGuideView in React Native for a TV App I'm developing. Basically I have a sidebar in my application, and when the user views content, they are ...
lmseper's user avatar
1 vote
2 answers
33 views

How can I set the focus to an invisible button or the window itself in a QDialog (PyQt5)?

I want to have a QDialog that blocks the interaction with the MainWindow, but where initially no widget has a focus, i. e. no button has a blue border and gets pushed when hitting "Enter". I ...
jon_tea's user avatar
  • 13
0 votes
1 answer
44 views

Handling focus changes in tvOS SpriteKit app, where scene is embedded in a SwiftUI SpriteView

I'm having a mare trying to receive TV remote navigation (via the focus engine) in my SpriteKit game. I've got a SwiftUI tvOS app with the following heirarchy: struct SwatchGridSceneView: View { ...
Jacob King's user avatar
  • 6,089
0 votes
1 answer
20 views

Flutter TextField onTopOutside: can not refocus after unfocus

Scaffold( appBar: AppBar(title: const Text('Example')), body: SizedBox( width: 100, height: 40, child: Builder(builder: (context) { ...
eastwater's user avatar
  • 5,276
1 vote
0 answers
13 views

selectorprimaryfocus in ComboBox

I am trying to set focus to a comboBox which is present inside a Tearsheet when the tearsheet is opened. but it doesnt work. import { ComboBox } from "@carbon/react"; import { Tearsheet } ...
Raghavi's user avatar
  • 11
1 vote
3 answers
58 views

Not possible to set focus on content of Tooltip component from Material UI on firing onClick event but possible on firing onKeyPress event

I am using Tooltip component from MUI in my customized TooltipComponent. TooltipComponent works similar to Dialog: user can see some content pop up after clicking (not hovering) on element (div with a ...
yakob's user avatar
  • 61
1 vote
1 answer
46 views

Focus isn't regained when swiping back from a Route, unlike using the back button in Flutter, iOS

Any ideas on why this is happening and possible solutions would be really welcome! When I have assigned Focus to a Widget and I am navigating to a new route, and then navigating back to the previous ...
Dimitrios Chatzichristofas's user avatar

15 30 50 per page