focus Questions
4
Solved
The <dialog> element will receive focus once it is opened and I know that this is the intended behavior. However, I thought about using a <dialog> element to show a short notice at the ...
Osman asked 1/6, 2022 at 18:38
4
Solved
I currently have a <dialog> which I am opening via JS. For demonstration purposes, my dialog has a single <button> element within it.
My issue is, when I open the dialog using .showMo...
Lawabiding asked 14/5, 2020 at 12:55
7
Solved
I'm using jQuery with TinyMCE. I am trying to get the border colors to change when the TinyMCE editor is in focus, and then on a blur, change back.
In the ui.css, I've added/changed these:
.defau...
Oriental asked 17/12, 2010 at 1:16
3
Solved
I was wondering how would I be able to pass down a @FocusState to another view. Here is some example code:
struct View1: View {
enum Field {
case username, password
}
@State var passwordText:...
Rattletrap asked 28/11, 2021 at 6:40
9
Solved
In my Android application it automatically focuses the first Button I have in my layout, giving it an orange outline. How can I set the initial focus preferably in XML, and can this be set to nothi...
3
Solved
I am writing a small timing module in Python using tkinter. In that regard, I would like to globally monitor when the escape key is pressed for stopping the timing.
Unfortunately, tkinters ".bind"...
17
Solved
I have a TextBox in my C# program. I need focus to be on this TextBox when the program starts.
I tried this on Form_Load:
MyTextBox.Focus();
but it doesn't work.
How do I put focus on this when th...
5
Solved
How can I remove Textfield focus when I press return or click outside Textfield?
Note that this is SwiftUI on macOS.
If I do this:
import SwiftUI
struct ContentView: View {
@State var field1: St...
8
I have a JavaScript chat client running in one browser tab (call it tab A). Now when a message arrives the user might be on another browser tab (call it tab B). I'm looking for ways to change the f...
Bilestone asked 24/4, 2010 at 11:9
11
I have a <div contenteditable=true> where I define by a WYSIWYG some elements. For example <p>,<h1>, etc. I would like to directly put the focus on one of these elements.
For exam...
Hospitable asked 5/3, 2010 at 16:15
2
Solved
I want to enable TextField focus when QML file is loaded. But, it is not working. After loading TestUi.qml file I put some button and its onClick() method I did _recipientView.focus = true_, it wor...
21
Solved
I need to remove the focus from several TextBoxes. I tried using:
textBox1.Focused = false;
Its ReadOnly property value is true.
I then tried setting the focus on the form, so as to remove it f...
4
Solved
I have written a simple MSN-style program that will send and retrieve messages using WCF. The main form contains a Textbox to type in the message to be sent. In the background the application polls...
Chatterer asked 21/9, 2009 at 20:0
1
Let me explain, I have a parent view with a SearchBarView, im passing down a focus state binding like this .
SearchBarView(searchText:$object.searchQuery, searching: $object.searching, focused: _s...
4
Solved
My problem is simple. How to Clear Focus of all the elements in a View that may have focus (like EditText -or- TextView whose textIsSelectable="true" and the text is selected in it at occurrence of...
Orian asked 26/2, 2017 at 19:51
11
Solved
I have a simple input form; it's a vertical LinearLayout with EditTexts inside a ScrollView.
<ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Linear...
Weiland asked 21/3, 2011 at 9:36
19
Solved
My layout contains ListView, SurfaceView and EditText. When I click on the EditText, it receives focus and the on-screen keyboard pops up. When I click somewhere outside of the EditText, it still h...
Taveras asked 28/1, 2011 at 13:18
6
Solved
I have one edit text and i want to set focus on it once a button is clicked and after editing my status when enter or done is pressed for soft keyboard i want to remove focus again and send a reque...
Botheration asked 30/9, 2014 at 5:4
6
Solved
I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's focus?
Some example...
Derna asked 14/9, 2009 at 19:53
15
Solved
I've read the other questions discussing this, and all of them work for my layouts, except for the very first one created.
At the moment, this is at the top of my onCreate method:
getWindow().set...
Angadresma asked 18/8, 2013 at 4:50
6
I have a Burger Menu Button which is selectable via TAB. When I click on it and the menu opens up the burger has this blue outline to make it clear that it is focused.
I don't want to remove that b...
Oarsman asked 6/3, 2017 at 11:43
2
Solved
I used the below code to create a custom search bar in SwiftUI. It works great on iOS / Catalyst:
...but when running natively on macOS, the 'focus ring' highlighted border styling (when the user ...
Yamashita asked 19/1, 2020 at 20:5
6
Solved
Is there any way to have a label respond to focus. I have some code where the textfield has a different style on focus. The label also however needs a slightly different style. I tried this but it ...
5
Solved
I'm a coding a JavaScript reporting component, that requires multiple LI's i.e. lists to be selected collectively as a bunch with visual feedback.
I'm thinking of adapting the onfocus event. Is it...
Gehlbach asked 10/6, 2010 at 17:46
10
I have a simple input field like this.
<div class="search">
<input type="text" value="y u no work"/>
</div>
And I'm trying to focus() it inside a function.
So inside of a ran...
Strigil asked 30/8, 2012 at 20:0
1 Next >
© 2022 - 2024 — McMap. All rights reserved.