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
1
vote
1 answer

remove default selection without disabling web view's hyperlinks and buttons

I am using btwebview to get text selection and handle it. The problem is when I use longPress with gestureDetector the default selection is also being launched, if I override onTouchEvent and return true, the problem is solved but I cannot click on…
coder
  • 5,200
  • 3
  • 20
  • 45
1
vote
1 answer

UITextField clear glitch - text highlights, selection carets appear

I'm seeing a glitch in a UITextField when you tap on the clear button (the little X). Immediately before the text disappears, the selection carets appear (the vertical lines you move to select text) and then the text highlights as if it were…
Anna Dickinson
  • 3,307
  • 24
  • 43
1
vote
2 answers

How to Select text on mobile web browser by moving touch on screen using javascript?

I am trying to select text from mobile web browser on touch based mobile by moving touch on screen using javascript. I don't want to use long touch to select text. I am trying to get selected text just like browser on desktop not like mobile…
1
vote
1 answer

WPF Richtextbox text selection

I have a WPF richtextbox having a Table as a Flowdocument. I need to copy content of selected table rows using C# on mouse right click. The problem I m facing is being unable to get selected rows. Using following function but unable to get selected…
1
vote
2 answers

Vim - possible to 'Change 2nd Word In quotes'?

This is arguably a micro-optimisation but given the following:
Content
Using Vim, and with my cursor anywhere on that line, I wondered if there is a way to change the 2nd word in the quotes using the change…
Ben Frain
  • 2,510
  • 1
  • 29
  • 44
1
vote
2 answers

UITableViewCell with selectable/copyable text that also detects URLs on the iPhone

I have a problem. Part of my app requires text to be shown in a table. The text needs to be selectable/copyable (but not editable) and any URLs within the text need to be highlighted and and when tapped allow me to take that URL and open my embedded…
Jasarien
  • 58,279
  • 31
  • 157
  • 188
1
vote
2 answers

Incorrect behavior of text selection with

I experience incorrect behavior of text selection which happens only in FF. By clicking on bullet of li element FF displays selection spans across the whole li element but obtaining this selection range in JS results only in 1 character selected…
keaukraine
  • 5,315
  • 29
  • 54
1
vote
0 answers

Android - Custom textview which support text selection and underline

I want to make custom view or textview, which supports text selection and can also underline part of text string on long press and move-after-long-press events(drag to next line to underline) with different colors of underline. Undelined text can be…
1
vote
0 answers

Text selection on Android Samsung Galaxy devices hides whole screen

Only Samsung Galaxy devices are affected (checked on SGS4 and SGN2). Looks like this: Anyone had this issue before? Any ideas what could cause this? How to fix it? Update: This happens when double tapped on text row. If pressing Select All and Copy…
ViliusK
  • 11,345
  • 4
  • 67
  • 71
1
vote
1 answer

Changing paragraph selection style

I'm kind of new to JQuery, and I'm in a very difficult position right now. I need to make the user free to write in a paragraph, and then change the text color as he wish, but only a selected text from his paragraph, like text editing in a…
Avulsed
  • 11
  • 3
1
vote
0 answers

Add Action To TextSelection in JTextPane

I would like to add an action to textSelection in JTextPanel. It is easy to retrieve the selection, to highlight it, or add styles like bold or italic, however, I can' add an action to this selection. I would like to support simple actions (mouse…
1
vote
0 answers

Selection area: bound by div and change it's color for all elements

I am new to HTML/CSS and I faced with two troubles with elements selection. I write a html page, which contains a centered div and elements inside it. I have two troubles: How to bound selection area by div borders? Some elements use "old"…
Filipp Voronov
  • 4,077
  • 5
  • 25
  • 32
1
vote
3 answers

How do I select part of a filename (leave out the extension) in Python?

For example if I have the variable "file.txt", I want to be able to save only "file" to a variable. What I'd like is to eliminate whatever is beyond the last dot (including the dot). So if i had "file.version2.txt", I'd be left with…
Stefan Urziceanu
  • 237
  • 1
  • 3
  • 10
1
vote
2 answers

Color of selected text in RichTextBox

In CSS we're able to edit the text selection's colors by using the ::selection pseudo-tag. Is it possible, to overwrite the default background color of the selection just for one control, e.g. a RichTextBox? I know, that there is no way to change…
michaeln
  • 1,032
  • 17
  • 33
1
vote
1 answer

CSS ::selection on Chrome

I am using css selection selector on my blog to override the default behaviour of browser text selection. The code I use for CSS is given below. ::-moz-selection { background: #ea0000; color: #fff; text-shadow: none; } ::selection { background:…
Semih Yagcioglu
  • 4,011
  • 1
  • 26
  • 43