focus Questions

15

I have a fairly complex (not really) xml layout file. One of the views is a LinearLayout (v1) with two children: an EditText(v2) and another LinearLayout(v3). The child LinearLayout in turn has an ...
Helfrich asked 12/4, 2014 at 22:27

25

Solved

I have JavaScript that is doing activity periodically. When the user is not looking at the site (i.e., the window or tab does not have focus), it'd be nice to not run. Is there a way to do this us...
Vinous asked 29/6, 2009 at 19:20

2

I'm trying to debug the integration between my app and Stripe's Elements component library. Everything works fine in sandbox mode, but we ran into a problem on production in the 3D Secure authentic...
Infallible asked 11/5, 2021 at 2:58

2

I have a scenario like this: .container { background: yellow; padding: 40px; } .container:focus-within { background: red; } iframe { background: white; } <div class="conta...
Traject asked 23/9, 2018 at 5:43

2

I have one h1 element, which has a :after pseudo element, when firstly press tab, this h1 element will get focus, but when I press tab again, the focus will go to next REAL element, how could I mak...
Cottrill asked 23/7, 2015 at 5:26

10

I've got a particularly large form in an page. When the form is validated and a field is invalid, I want to scroll the window to that control. Calling the control's Focus() doesn't seem to do this....
Tifanytiff asked 14/4, 2009 at 2:4

2

Solved

I am looking for solution which allow to focus elements inside treeview using arrow keys. Currently, I have treeView (ul) and treeNode (li). Each treeNode may have their own treeView and so on. Ev...
Naphthol asked 28/6, 2017 at 14:38

0

I am have a layout in which a scrollview holds several nested views and 2 recyclerviews. The imageview at the bottom has a clicklistener which lets the user see another picture onClick. Problem is ...
Fairhaired asked 18/1, 2023 at 16:54

11

Solved

I want to add a simple (at least I thought it was) behaviour to my WPF TextBox. When the user presses Escape I want the TextBox he is editing to have the text it had when the user started editing,...
Moncada asked 26/5, 2010 at 15:41

3

I have a Textfield then a Button then a Textfield. On Tab key press focus goes to first Textfield, on Tab key press again focus goes to the button. How can I ignore focus on button and give focus t...
Catercornered asked 17/2, 2021 at 20:45

4

I have 2 AutoCompleteTextViews in an activity (LinearLayout) and several additional controls (radiogroups, buttons, etc). Somehow the AutoCompleteTextViews are never losing focus. As Example: The ...
Eachelle asked 21/2, 2014 at 16:21

4

I have a custom StatefulWidget that when typing into an empty field, it will automatically add a new empty field below so the user can keep adding data. However, as I use setState in onChanged to a...
Xena asked 5/2, 2019 at 12:30

3

jQuery's focus() method is does not appear to work when used from within a setTimeout in iOS. So, setTimeout( function () { // Appears to have no effect in iOS, fine in Chrome/Safari/Firefox/IE ...
Dharana asked 28/7, 2011 at 22:15

1

I'm facing an issue where I need to be able to actually focus a TabItem tab in a TabControl like I would press the TAB key. I know I could use SendKeys.SendWait("{TAB}"); in order to achi...
Waxplant asked 10/11, 2022 at 8:14

12

Solved

How do I get a Tkinter application to jump to the front? Currently, the window appears behind all my other windows and doesn't get focus. Is there some method I should be calling?
Zina asked 12/12, 2009 at 4:52

10

Solved

When I begin writing text in the textarea, I want the outer div, with a class box, to have its border turned solid instead of dashed, but somehow the :focus doesn't apply in this case. If it works ...
Duck asked 24/10, 2011 at 13:23

3

I'm aware of the other threads on this topic but they are autoraised-based and/or all the answers point to software that's no longer being developed. I'm just looking for this simple feature: focus...
Langouste asked 5/6, 2017 at 1:55

6

I'm creating a form with a select dropdown. One of the options is "other - please specify", which is supposed to display an extra text field for more details. I managed to do it using onChange eve...
Vonnie asked 2/9, 2009 at 15:42

2

Solved

One of my coworkers just came to me with an interesting problem. He's displaying a WinForms form from a PowerShell script, and while the form opens successfully it does not get focus. Instead the ...
Siva asked 14/10, 2010 at 18:23

1

Solved

I have a screen with a Textfield as a Search bar which is autofocused when the screen is first displayed. The problem is, after screen rotation or system theme change (Dark mode/light mode), the cu...
Elmaelmajian asked 9/11, 2022 at 3:13

6

Solved

The old version of the question is below, after researching more, I decided to rephrase the question. The problem as before is, I need to focus a contenteditable div without highlighting the text, ...
Concave asked 20/5, 2010 at 4:51

10

I'm trying to remove all jQuery from my code. Until now I used if ($(selector).find(':focus').length === 0) { // focus is outside of my element } else { // focus is inside my element } to distin...
Cioffred asked 19/11, 2018 at 7:30

4

Solved

I'm trying to have a particular form field get focus automatically in a Safari browser on iPhone. I thought this would be pretty straight-forward, but I'm not managing to get this working. So, is t...
Rephrase asked 24/4, 2011 at 16:35

5

Solved

I have a textarea in which I am inserting content at the location of the caret (thanks to Tim Down's answer). It inserts the content when the user presses a button. But it seems that when the butto...
Beggs asked 28/8, 2012 at 7:52

2

Solved

I have a custom UICollectionViewCell in my tvOS app. It has a UIImageView and some UILabels in it. I can get the cell to be focused by implementing the UIFocusEnvironment protocol without any issue...
Vegetation asked 21/9, 2015 at 16:52

© 2022 - 2024 — McMap. All rights reserved.