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
8
votes
2 answers

Is mark active if and only if region is active in Emacs?

Does "mark is active" simply mean the same thing as "region is active" in Emacs, regardless of whether Transient Mark mode is enabled? Therefore to activate mark is the same as to activate region? I am confused because two phrases seem to be used…
Jisang Yoo
  • 3,670
  • 20
  • 31
7
votes
4 answers

How should Selection selectfinish/selectend event be implemented?

I'm looking to do something whenever a user finishes making a selection —essentially, on the first mouseup event after every selectstart event, I think— on the page. I want to take that selection and wrap it in an element to be styled via CSS. I…
7
votes
3 answers

Mimic Ctrl+A with JavaScript

I would like to select all text on a page programmatically with the exact same result as if I would press key combo Ctrl+A. The problem with using document.getSelection().selectAllChildren(body) is that the selection will also include text nodes…
user1521685
  • 210
  • 2
  • 13
7
votes
4 answers

Disabling text selection in DocumentViewer

Simple question. How do you disable the text selection of DocumentViewer in WPF? This is the feature where an XPS document is displayed by the viewer and then text can be highlighted via mouse. The highlighted text can also be copied but I have…
bjutus
6
votes
2 answers

Use body::selection, i want to customize highlight color

Why cannot use body::selection, when i want anything that can highlight to be the color i desired, anything include p img li h1 Examples here Now i want everything highlight to be RED color, but i am using body::selection, it never…
Kent Liau
  • 915
  • 15
  • 26
6
votes
2 answers

Why is text selection not visible in GitHub or other websites using the Google Chrome browser?

Firefox and Edge do not have this problem. When using Google Chrome browser, I am trying to select code or text. The text is selected, but it is not visible. The usual highlighting of the background is not visible. Most other websites seem fine.…
Leo Kac
  • 428
  • 2
  • 6
6
votes
2 answers

Why doesn't this MotionEvent simulation work?

In one of the views in an exercise app, am trying to perform text selection programmatically. I am able to (programmatically) enter "text selection mode", which is visually indicated by CursorControllers (AKA handles) on the top-left corner of the…
Regex Rookie
  • 10,432
  • 15
  • 54
  • 88
6
votes
0 answers

Switching Archor Selection using android ime

I am trying to design a custom keyboard and a part of the keyboard is to allow the user to select some text and edit it. I wanted to provide the ability to the user to be able to switch selection of the anchor so that he/she may be able to…
flide
  • 189
  • 16
6
votes
2 answers

Text of element with CSS "user-select=none" gets copied if it is located between elements

Check out this snippet: .noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Firefox */ …
6
votes
2 answers

How to prevent user copying text of a certain div using CSS?

I know one can use the below CSS to disable user text selection. .unselectable{ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select:…
user2335065
  • 2,337
  • 3
  • 31
  • 54
6
votes
1 answer

Intercept (and perhaps cancel) page's mouse/keyboard event handlers

I'm trying to create a Chrome Extension that deals with selected text. Some website pages' otherwise selectable text content has click/mouse-up/down event handlers that navigate to a new page. Is there a way from the background or content script to…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
6
votes
1 answer

Is there any way to programatically select text in a TextView?

I have a TextView that I'm looking to allow the user to search in for a specific string. If the string is found, it should highlight. Using a background span is too slow and awkward, so I am trying to figure out if I can just have it select the…
yuttadhammo
  • 5,069
  • 6
  • 34
  • 45
6
votes
1 answer

Html/Text selection in IE10

I need the ability to select a range of HTML by giving it an ID selector. What I have below works great in Chrome and Firefox, but not in IE 10 (standard mode). (older version of IE are not a concern for this) function…
Chris Barr
  • 29,851
  • 23
  • 95
  • 135
6
votes
3 answers

User text selection in floating element in Chrome (webkit) selects more text

When double clicking the text in the grey label (has float: right), chrome (webkit) also selects text at the beginning of the line (has float: left). Is there any way to counter this without adding extra markup or changing the label source…
Lezz
  • 1,242
  • 1
  • 9
  • 12
6
votes
1 answer

Prevent element from taking part in text selection

I have some source code in a
 with line numbers in a separate 
. When the text is selected, the line numbers come with it, and are subsequently copied. Is there any way to prevent the line numbers from being a part of the selection,…
nneonneo
  • 171,345
  • 36
  • 312
  • 383