cursor-position Questions

9

Solved

I need to move caret to end of contenteditable node like on Gmail notes widget. I read threads on StackOverflow, but those solutions are based on using inputs and they don't work with contenteditab...
Recant asked 14/7, 2009 at 13:13

11

Solved

I am try to set the caret/cursor position to the end of the string value in my WPF textbox when I open my window for the first time. I use the FocusManager to set the focus on my textbox when my wi...
Foreplay asked 22/5, 2010 at 16:49

4

I want to print current time (by using printf) in same place, but i want to do it in infinite loop eg: while(1) {printf("Date and Time are %s", asctime(localtime(&current))); } So b...
Pelvic asked 5/3, 2010 at 13:14

9

Solved

I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus. It appears default functionality of a...
Louislouisa asked 25/7, 2009 at 9:18

3

I am implementing "find and correct" functionality using codemirror. I know there is an addon for search and replace, but it doesn't fulfill my requirement. the editor is for writing particular que...
Overtake asked 28/10, 2015 at 15:16

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

1

For a regular EditText, we can get the cursor position by calling the getSelectionStart() method. In Jetpack Compose this posibility is available for ClickableText, but apparently not for TextField...
Feel asked 29/6, 2022 at 22:59

5

Solved

I've been trying to insert text into the TinyMCE Editor at the focused paragraph element (<p>) exactly where the cursor is but got no luck!! var elem = tinyMCE.activeEditor.dom.get('tinymce'...
Oringa asked 15/11, 2012 at 8:36

2

Solved

Windows Form I'm using the DragOver event on a layoutpanel and the DragEventArgs returns the X/Y coordinates of the mouse in relation to the screen. I know there is a function to translate this in ...
Cassation asked 21/1, 2009 at 14:36

5

I have a controlled React input component and I am formatting the input as shown in onChange code. <input type="TEL" id="applicantCellPhone" onChange={this.formatPhone} name="applicant.cellPho...

13

Solved

I have this simple HTML as an example: <div id="editable" contenteditable="true"> text text text<br> text text text<br> text text text<br> </div&gt...

7

Solved

Is it possible to cancel the said behavior? A task for extra credit: Figure out a way to force Vim to refresh the cursor position immediately after exiting Insert mode.
Averir asked 19/2, 2010 at 10:6

2

I am using input type text box with pre populated values and when I click on the input box the position of the cursor is moving to the start which is not happening in other browsers(only IE11 is th...

1

Solved

I am having terrible problems getting a real cursor for resolving a database pagination result in GraphQL. No matter what kind of database (SQL e.g. mysql or NoSQL document e.g. mongodb) I am using...
Cerargyrite asked 11/7, 2019 at 12:45

3

I want to show a popupmenu when click a button, but this procedure has error in Delphi XE. procedure ShowPopupMenuEx(var mb1:TMouseButton;var X:integer;var Y:integer;var pPopUP:TPopupMenu); var p...
Zabaglione asked 21/10, 2010 at 11:39

14

Solved

I recently discovered Ctrl+E and Ctrl+Y shortcuts for Vim that respectively move the screen up and down with a one line step, without moving the cursor. Do you know any command that leaves the cur...
Visor asked 11/8, 2010 at 13:21

4

Solved

I've found many articles on how to set the mouse position in a C# windows forms project - I want to do this in a console application. How can I set the absolute mouse position from a C# windows con...

1

Solved

I want to set the cursor position after changing the model object but it actually tries to set the cursor position before updating the value of the textbox. HTML: <input type="text" name="tes...
Kincardine asked 23/5, 2019 at 6:50

5

Solved

I am not sure if I've been missing anything obvious, but I have not found anything documented about how one would go to insert Word elements (tables, for example) at some specific place in a docume...
Microbalance asked 25/7, 2014 at 21:50

2

I have a spell check solution that uses a content editable div and inserts span tags around words that are misspelled. Every time the inner html of the div is updated, the cursor moves to the begin...
Kelcy asked 21/4, 2017 at 4:28

1

Solved

To experiment with updating percentages of progress items in the console, I've made a small test console application: using System; using System.Collections.Generic; using System.Diagnostics; usin...
Assembler asked 4/4, 2019 at 15:4

2

Solved

My form hierarchy is something like this: Form -> TableLayoutOne -> TableLayoutTwo -> Panel -> ListBox In the MouseMove event of the ListBox, I have code like this: Point cursosPos...
Castaway asked 22/9, 2011 at 2:35

7

Solved

How can I get the caret's position in a textarea using jQuery? I'm looking for the cursor's offset from the start of the text, not for the (x, y) position.
Pytlik asked 11/12, 2009 at 23:3

1

I have activities that are stored in a graph database. Multiple activities are grouped and aggregated into 1 activity in some circumstances. A processed activity feed could look like this: Activi...
Shellbark asked 21/6, 2013 at 11:31

2

How can I catch the event of "cursor place change" inside textarea with jQuery (also should working in IE6)? Example1: Before :text | After : te| Example2: Before :text | After : text tex...
Pragmatism asked 29/4, 2011 at 13:26

© 2022 - 2024 — McMap. All rights reserved.