Questions tagged [textselection]

In User Interface Design, text selection is the method of handpicking a portion of text, most commonly for the purpose of copying/cutting/pasting.

In User Interface Design, text selection is the method of handpicking a portion of text that will be further acted upon by the user. The selection is done by the interaction devices provided by the user interface.

Text selection is most commonly associated with the user actions of copying, cutting, and pasting. In Graphical User Interface, text selection is performed by a mouse or touch represented as cursors.

459 questions
9
votes
2 answers

How can I select multiple text segments in a WPF textbox?

Is it possible to select multiple parts of text within a WPF textbox? For instance, for a textbox that contains the string THIS IS A TEST, I want to be able to highlight THIS, then hold Ctrl and highlight TEST without unselecting THIS. For a visual…
luvieere
  • 37,065
  • 18
  • 127
  • 179
9
votes
2 answers

Select a paragraph with JavaScript (on click)?

Is it possible to select all the text of an element (e.g., a paragraph

) with JavaScript? A lot of people think jQuery .select() would do this, but it does not. It merely triggers an event. Note that DOM objects for elements have a native…

Alan H.
  • 16,219
  • 17
  • 80
  • 113
9
votes
2 answers

How to create tooltip over text selection without wrapping?

My end goal is to create a tooltip over a text selection. The user will then be able to interact with the tooltip similar to . Please note that I was able to accomplish this by wrapping selected text in a tag and then creating the tooltip on it…
Naveed
  • 2,942
  • 2
  • 25
  • 58
9
votes
3 answers

How to completely remove the selection bar from a TRichEdit control?

On the left side of every line in a TRichEdit control there's an invisible space where the cursor changes to a right-up arrow and when you click there the entire line is selected. It's easy to see it when the TRichEdit's text alignment is Center or…
jedivader
  • 828
  • 10
  • 23
9
votes
3 answers

Text selection in div(contenteditable) when double click

I have div with some text and contenteditable="true". When I single click on this div - works some my scripts, it is not very important. And when I double click on this div - need to edit text in div. Edit text need to be only after double click,…
Alex-cr
  • 93
  • 1
  • 1
  • 3
9
votes
2 answers

How to prevent the double-click select text in Javascript

Say I have an ul (li) list in the page:
  • xxx
  • xxx
The element li are clickable and double-clickable, they are attached with these events, and I return false in both of them. $('ul li').on('click',function(){ //do what…
hguser
  • 35,079
  • 54
  • 159
  • 293
8
votes
1 answer

Android Text Selection Listener

I'm trying to create a graceful, distraction-free text editor. One of the features I really would like to implement is a pop-up with simple text formatting commands, such as bold, italic, underline, font color, and font face. To give you an idea,…
Nikhil
  • 107
  • 1
  • 5
8
votes
1 answer

Why does the CSS3 pseudo ::selection not change the color for all parts?

Why does the CSS3 pseudo-element selection not change all parts of the highlight? As you can see in this screenshot I have selected part of the page, and parts of the selection are the default bright blue color: This is the CSS that I'm using, it…
Nathan
  • 11,814
  • 11
  • 50
  • 93
8
votes
4 answers

How to achieve clean text selection with Safari?

See the behavior of text selection on one of Sam Harris' blog posts. Compare that to this post on the Bear app blog. On Firefox, there's no difference. However, on Safari the text selection on the Bloomberg article is all over the place, while the…
Valentin
  • 365
  • 6
  • 19
8
votes
1 answer

Block selection or multiple cursors in Texstudio?

The website of Texstudio advertises block selection or multiple cursor functionality, but I could not figure out which key combination to use for this feature reading their horribly cryptic user-manual. I am familiar with how text selection with…
Nanashi No Gombe
  • 510
  • 1
  • 6
  • 19
8
votes
1 answer

What Text Selection Control is this?

I want to implement the same nature type of control on text selection on a Activity with various text fields. Any ideas of implementing the behavior shown in Picture
SoftReference
  • 6,969
  • 4
  • 19
  • 25
8
votes
7 answers

jqueryUI Sortable: handling .disableSelection() on form inputs

example: i have an un-ordered list containing a bunch of form inputs. after making the ul .sortable(), I call .disableSelection() on the sortable (ul) to prevent text-selection when dragging an li item. ..all fine but I need to re/enable…
zack
  • 3,198
  • 2
  • 35
  • 51
8
votes
1 answer

android webview: prevent text selection actionMode actionBar

I want to preserve the text selection in a webView while preventing any contextual menu of the actioMode from being shown. Neither the new floating one nor the old actionBar, just the selection handles and of course the selection behaviour. Hooking…
8
votes
1 answer

Floating toolbar with text selection controls

I was researching all over the web to no avail. My app requires a floating toolbar which appears above a selected text because the default text selection controls are not accessible in a particular case and they also show up oddly in my activity…
Ben Faingold
  • 563
  • 5
  • 12
8
votes
2 answers

Disable text selection and copy paste in hybrid app using JS

I am trying to disable text selection and copy paste in phonegap applicaion by using following code. CSS -webkit-user-select:none; JavaScript $('body').on('cut copy paste',function(e){e.preventDefault();}); It works on all OS platforms including…
Humming Bird
  • 87
  • 1
  • 1
  • 6