Questions tagged [focus]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to ignore (undo) the WM_SETFOCUS for the new window and WM_KILLFOCUS for the old one, keeping the rest of the processing?

Lets say I have a frame window containing an EDIT and a BUTTON controls, I need to keep the focus always on that edit control whenever I click on the button, and continue the normal button click ...
Tomay's user avatar
  • 45
-1 votes
0 answers
47 views

Text selection doesn't show until input looses focus in Firefox (javascript)

The code below seems to work as expected in most browsers but not Firefox. The following code is stripped to basics, I've tried this in Chrome, Opera & Edge, all fine. But in Firefox it behaves ...
Terry King's user avatar
1 vote
2 answers
43 views

button on click event does not fire if active textarea has css to change size on focus

As you can test in snippet if i focus textarea and click on button no action fires, i have to click one more time removing focus style all works fine. what can i do? thanks textarea:focus{ ...
gt.guybrush's user avatar
  • 1,334
0 votes
0 answers
32 views

how to make python Tkinker treeview active without clicking on it

I am trying to make a treeview which shows the names of some companies and trying to focus and select a company by pressing the first alphabet of the company name. My code works fine if I click ...
Premachandran's user avatar
0 votes
1 answer
31 views

How to check if a screen is focused within a Tab Stack - React Navigation

I'm creating a React Native app that uses React Navigation. Within 1 of my tabs, I have 3 screens. If I am in any of the screens that isn't the home screen within that tab, and I tap on the tab icon, ...
JSim's user avatar
  • 137
0 votes
0 answers
28 views

Why TextArea focus does not allow user to select and copy text?

In my angular application, I have a TextArea field and I am disabling and enabling it conditionally. Also I apply focus on it whenever it is enabled. But, Whenever the textArea field gets enabled and ...
vijay s's user avatar
  • 179
0 votes
0 answers
30 views

how to change the focus node to next pinput widget

how to change the focus node to next pinput widget I tried to add focus node object to the second pinput widget but no luck the focus is not moving to the next widget. What I want is when first widget ...
Nandyala Raja Pragnesh Reddy's user avatar
0 votes
2 answers
106 views

Delphi: de-focus TDateTimePicker control

I have the following problems with the TDateTimePicker control: When the form comes up, it's automatically focused. It's my first control on the form, but everything needs to be de-focused on startup....
gene b.'s user avatar
  • 10.9k
0 votes
0 answers
5 views

tvos: change focused color of UIButton

How to change default white color of tvos swift UIButton focus selection? override func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) { if let ...
ashish's user avatar
  • 11
0 votes
0 answers
3 views

How to remove border from input when it's not focused

I wnat to remove this border when its not focus but border 0 is not working or how can i change input border size. here is a image of my problem I try to set border none but it's not working for me ...
Sabbir Mohammad Sami's user avatar
0 votes
0 answers
24 views

Accessibility focus does not go to next view on DPAD_RIGHT key from the last item in ScrollView in Andorid

As mentioned in the image, I have a Scrollview and LinearLayout2 inside a horizontal LinearLayout Parent in TV screen. The problem is that when there are more items and Scroll is required in ...
Anees U's user avatar
  • 1,087
0 votes
0 answers
19 views

Focus lost on NgbModal opened in result handler of other NgbModal

I have a modal that asks the user for some input, and depending on that input, i may have to open another modal. I have implemented this in the following way: askUser(): void { this.ngbModal.open(...
bmurauer's user avatar
  • 989
0 votes
0 answers
20 views

How to set the focus of custom tab to remain static in Excel addin api using js

enter image description here Hi, I have created an excel addin project using custom tab ribbon that loads at very last tab but the focus shifts to Home tab each time I perform any operation using that ...
ArshadAnsari's user avatar
0 votes
0 answers
38 views

How can I set infinity focus on Androidk NDK

I'm currently working about to develop a camera application with android ndk c++. I'm working on Samsung devices and I need totally infinity focus with good resolution. I tried some solutions but they'...
AHC's user avatar
  • 21
0 votes
0 answers
32 views

Is it possible to get a PyQt5 Application (On MacOS) to not accept activation/focus completely, but still be interactable?

I am currently trying to create a PyQt5 application that sends OSC messages to ETC's EOS lighting software. I have a single encoder wheel working to modify the pan values of a moving light. However, I ...
Kyelimepi's user avatar
0 votes
0 answers
44 views

How to hide keyboard and keep input focus at the same time on WKWebView in iOS17

I am working on a rich text editor in iOS using WKWebView with a contenteditable webpage. I've implemented a custom toolbar and a collectionView that's hidden behind the keyboard. My goal is to ...
jamBoomChuu's user avatar
0 votes
1 answer
29 views

Knowing focused element id before submit form

I want to return focus to the html element (that fires submit of my form) after ajax checkings. because always my form is submitted the last focused element is always the submit button. How can i know ...
mdromed's user avatar
  • 55
-2 votes
0 answers
55 views

How to make an Outlook reminder popup and stay on top in Outlook 2021

I am trying to make an Outlook reminder popup and stay on top in Outlook 2021. A simple macro is working for me but its not very helpful due to shortcomings described in How to make an outlook ...
X0-1's user avatar
  • 1
0 votes
0 answers
15 views

continuousAutoFocus or autoFocus when tap to focus?

The developing camera app uses .autoFocus when tap to focus, but considering using .continuousAutoFocus instead. Just don't know which is better? when will the tapPoint be dismissed? Does ....
jdleung's user avatar
  • 1,088
0 votes
1 answer
54 views

scrollIntoView() method stops scrolling mid-way to the element when triggered by ENTER key on input

Context I'm developing a list of items. I have a form on the top of the list in order to add new items (just 1 input and 1 submit button). Once the form is submitted, I have the next code in order to ...
CeuxDruman's user avatar
1 vote
2 answers
47 views

Setting Focus on next item becoming visible while leaving ComboBox

I have a ComboBox with AutoCompleteMode set to Suggest. The next control in sequence is a TextBox. Depending on the selected item of the ComboBox the TextBox is visible or not visible. Furthermore ...
UHM's user avatar
  • 337
0 votes
1 answer
30 views

CSS-Selector: Anchor with tabindex still not focusable

I have this jsfiddle with my usecase, where a hidden div should show if another div with an anchor in it gets focus: https://jsfiddle.net/gimoya/skn2y3mx <div tabindex="1" class="...
Kay's user avatar
  • 2,742
1 vote
0 answers
45 views

DataTables - focus in search field missing after loading page for first time

Using DataTable and Bootstrap I would like to have the search field in focus after page load. Unfortunately, I'm not able to achieve it. When the page is loaded and I refresh it, then the search field ...
Mark-IT's user avatar
  • 11
1 vote
1 answer
26 views

Is there away to capture a marker focus event?

I want to capture a marker focus event so that I can change the marker icon when the markers are being tabbed through. Basically instead of this: marker.addListener("click", () => {}); or ...
Charity's user avatar
  • 117
0 votes
0 answers
50 views

How can I give focus to a TextField without any text being selected in flutter?

When I perform requestFocus() on a TextField that has any text, the text will become selected. What I want is to have the cursor at the end, without selecting any text. How can I give focus to a ...
F F's user avatar
  • 1
0 votes
0 answers
27 views

PyQT5 : why do direct shortcut class works whereas shortcut syntax doesn't work in QAction?

I'm facing a weird problem where page changing shortcut works in one syntax and don't in another. My application has 2 windows, each one on a different screen. The first window displays the main ...
Sestifer's user avatar
0 votes
0 answers
13 views

How can I disable the selection / focus halo in a swiftui list when displayed on an iPad / macOS so I can customize

Like the Weather app, my list cells have an inset / rounded look that needs a custom "selected / focused" state. I can't seem to find a way to disable the default behavior.
Rumbles's user avatar
  • 808
0 votes
1 answer
20 views

Virtual keyboard - wrong cursorPosition when refocussing input

I'm planning a virtual keyboard. It works for simple input, but when I repeat the typing in a setInterval it only works without refocussing on the input-element, otherwise the cursor-position jumps. ...
BarbWire's user avatar
0 votes
1 answer
53 views

how to enable keyboard focus for selected item in listview?

i have a winui/uwp app with a listview, when i use keyboard for navigate between items there is a white border around selected item, how i can enable this border for selected item by default? so i ...
Chibako's user avatar
  • 47
0 votes
1 answer
48 views

EditText loses focus on text change even though I have not set it to lose focus

I'm a noob in Android Development, trying to learn it. The issue is that I have an edit text that appears upon clicking a button and gains focus and also opens up the keypad. I have used a TextWatcher ...
Mohamed Sulaimaan's user avatar
1 vote
0 answers
47 views

VBA Excel UserForm: Cursor does not show in active texbox

In a UserForm in Excel I have a TextBox called ScanInput_Fx which is used repetitively to enter data. Each time the data is processed ScanInput_Fx is emptied and the focus returns to it. Or better: it ...
Renaat's user avatar
  • 13
1 vote
0 answers
49 views

Composable that reacts to parent's focus state

I am working on Android TV app with use of Jetpack Compose. I wanted to create a reusable Composable Icon that animates when focus state changes. I've managed to get something that reacts to focus ...
KarolKVimn's user avatar
1 vote
1 answer
73 views

How to manage focus in subviews in SwiftUI?

The Problem Hi everyone, I have a parentview with multiple childviews that contain multiple TextFields. I want to add chevrons to the keyboard toolbar to easily move the focus to the next TextField, ...
L. Mees's user avatar
  • 11
0 votes
2 answers
37 views

Vue: add focus on an input when changing a property in the pinia store

I have a component that on click calls a function that does things in the store: <button @click="this.store.foo()"></button> And in the store I change this property: state: () =...
Luca's user avatar
  • 343
0 votes
1 answer
45 views

UICollectionView resets focus when reloading data after presenting another VC

In certain conditions, on tvOS, a collection view will reset its focus on reloadData(). Below is the smallest amount of code that reproduces the problem. import SwiftUI @main struct DemosApp_tvOS: ...
Cristik's user avatar
  • 31.5k
1 vote
0 answers
87 views

Jetpack Compose TextField in LazyColumn

I'd like to not show "First item" when TextField is in focus. However refresh make TextField to loose focus. var addFirstItem by remember { mutableStateOf(true) } LazyColumn { ...
kkkkk's user avatar
  • 594
0 votes
0 answers
14 views

React Date Range Picker issue - not focusing on input field while date range picker is open on first click

I am using react-DateRangePicker, and using input field with this and when clicking on input it's opening that date range, but it's not focusing on input field while date range picker is open. ...
Muhammad Usman Jamil's user avatar
0 votes
1 answer
50 views

FocusRequester not initialized when using if statement to conditionally show TextField in Jetpack Compose

I'm creating a title bar that contains some text. The text cannot be edited by default and becomes editable when the edit button is clicked var value by remember { mutableStateOf("jordan") } ...
Kun.tito's user avatar
  • 185
0 votes
1 answer
196 views

Single-digit TextField input and automatic focus advance in SwiftUI

I'm trying to create a simple input form that lets a user enter a four-digit clock time -- hh:mm. I want to do robust checking on the input to be sure it's a valid time, and I'd like to prevent errors ...
mikeolson's user avatar
0 votes
1 answer
50 views

Modal window in joomla 3

Maybe the solution to my question is already on the site, but, unfortunately, I didn’t find it... Therefore, I apologize if I repeated the question. help me solve a problem with focus on a button. <...
Всеволод Ільченко's user avatar
0 votes
0 answers
10 views

React.js mobile view, focus is moving outside the modal after the last modal element and it's focusing on a parent element when using Google TalkBack

I have react JS web application with mobile view also. When i clicked on a button called view coupon focus is start working from Close button and end on Condition text but after this last element in ...
PARAG DOUNDE's user avatar
0 votes
0 answers
86 views

How to use window.open() but still focus on original window on Chrome, Angular 14?

I want to traverse the array and open its elements in the new Chrome Tab with their link. However, I don't want it to focus on the new Tab. Just focus on the original window. Does anybody know any way ...
Tung Le's user avatar
0 votes
1 answer
132 views

Prevent keyboard for TextField from dismissing after a [Return] but need to detect a [Return] keypress too

In short, I’m trying to achieve the Reminders.app interaction when you add an entry, hit [Return] and can then add the next entry immediately (i.e. keyboard does not dismiss, but only does if you hit [...
Barrrdi's user avatar
  • 953
0 votes
0 answers
12 views

nextFocusDown won't show keyboard if next edittext inputType="textPassword"

<EditText android:id="@+id/account" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true&...
GHH's user avatar
  • 1,785
0 votes
0 answers
19 views

Angular - Focus lost following navigation from component back to page

For a given component profile, it uses the button (edit name) when the button is pressed -> the user is navigated to a new component edit name the user saves the name and is returned to the profile ...
complexityyy's user avatar
0 votes
0 answers
20 views

Keep TinyMCE toolbar when losing focus in React

I am using TinyMCE 6 with React and I am creating a plugin to add comments with the selection of the text inside the tiny and I add the comment text from another external component, but when I click ...
Yasser Jiménez Martínez's user avatar
0 votes
1 answer
114 views

In svelte, I need to set the focus on an input element, but I get the error 'input.focus is not a function'

<script > let inx1 = "null"; let input =""; function handleClick() {input.focus(); } $: inx1 && handleClick(); </script> <textarea style="clear: ...
angelo alamia's user avatar
0 votes
0 answers
9 views

asp.net textEdit losses focus after typing one or two characters

I have a textEdit that is lossing focus after typing a couple characters. There is nothing special about the textEdit, I have several on the page and the others work just fine. <TextEdit ...
tyson's user avatar
  • 11
-1 votes
1 answer
34 views

coloring log statements in vscode

I'm wondering if I can change the color of my log statements in my code. anyway to do it? I want them dimmer (kinda like comments) so that it won't be as distracting and I can focus more on my actual ...
Indiego's user avatar
0 votes
0 answers
15 views

How to implement autoplay functionality only on UIScrollView?

In scrollview did scrolling and focus view video is playing and all are video is pause. How can I implement this functionality? I get center and top position of UIScrollView() but top video is play ...
ashish's user avatar
  • 11

1
2 3 4 5
146