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

How to disable ctrl+click to select text in IE 10?

In IE 10, when you click on any text while holding the CTRL key the browser selects the text (which means the text gains focus and I want to avoid this because I have some multi-select scenario where CTRL+click means add/remove-select). How can I…
Jajo
  • 123
  • 1
  • 5
5
votes
1 answer

How to disable text selection in a webview in Android?

My application playing HTML promotions in WebView, Html promotions having text so if user press long click android standard dialog appear Copy/Share/Find/Web Search, so is there any option to disable text selection dialog for webview ? Help me on…
Dale
  • 131
  • 2
  • 5
5
votes
2 answers

Saving a selection for later use in JS

I've got a rich text editor in an iframe with designMode that does syntax highlighting for small blocks of text. I'd like it to update the highlighting on keyup, but messing with the DOM causes the frame to blur, thus every time you push a key the…
Monchoman45
  • 517
  • 1
  • 7
  • 17
5
votes
1 answer

Flutter TextSelection.collapsed: The named parameter 'offset' isn't defined

I am getting an error using the Flutter's TextSelection.collapsed: The named parameter 'offset' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'offset'. However, the…
dot64dot
  • 531
  • 1
  • 6
  • 15
5
votes
1 answer

Customize word boundaries of Option-Delete (and other word related shortcuts) in macOS?

Is it possible to change the behavior of ⌥⌫ (option+delete) to include certain characters, like a period, as a word boundary? For example, in some.variable, I would like ⌥⌫ to delete up to the period but it currently deletes the entire string. The…
5
votes
1 answer

Setting caret position in JTextArea

I have a JTextArea. I have a function that selects some amount of text when some combination is called. It's done properly. The thing is, I want to move caret to the selection beginning when some text is selected and VK_LEFT is pressed. KeyListener…
nicks
  • 2,161
  • 8
  • 49
  • 101
5
votes
0 answers

Fix for Typekit's line-height overlaps on text select?

If line-height is not sufficient, Typekit adds some ugly overlaps while selecting the text: Is there a way to fix this?
Runnick
  • 613
  • 2
  • 12
  • 30
5
votes
1 answer

Change text selection highlight with JS

For standard browsers you can use something like this to change the coloring of selected text: div.txtArea::selection { background: transparent; } div.txtArea::-moz-selection { background: transparent; } div.txtArea::-webkit-selection { …
Mechlar
  • 4,946
  • 12
  • 58
  • 83
5
votes
1 answer

Is it possible to create a custom floating text selection menu in Android versions pre Marshmallow?

I'm looking to create a custom menu for text selection. I know it's possible to edit the behaviour of the action bar with setCustomSelectionActionModeCallback, but in my case I don't want that action bar to show at all, I want my own floating custom…
5
votes
1 answer

Making a rectangular selection in a RichTextBox with Alt-Left-Mouse sweep?

There are quite a few applications that allow you to select a box or rectangle of text by sweeping with mouse while the Alt key is pressed. Visual Studio 2010 does this in the code editor, for instance. Emacs does it. Winword does it. We've all seen…
Harold Bamford
  • 1,589
  • 1
  • 14
  • 26
5
votes
2 answers

NSTextField (Label) Attributed Text: Select

I have a NSTextField Label that has attributed text in it. The color and size are different from the defaults. (The text is a bit larger and green) Now, I need to be able to select the text in the label so as the click the hyperlinks embedded in the…
jhleath
  • 784
  • 1
  • 8
  • 18
5
votes
1 answer

Ace editor set text selection

My text is: My favourite singer is {Bruce Springsteen} and he was born in New Jersey. I want to programmatically select the text between the curly braces including them. I cannot find a straightforward way.
GRboss
  • 6,239
  • 5
  • 21
  • 20
4
votes
0 answers

How to call context-menu when select a text?

I wrote a program that use textIsSelectable property for select a part of text in textview. Now, I want to call a context-menu (include: copy, highlight, etc such as an ebook reader) when select a part of text it show. I've tried and studied but…
Omid Nazifi
  • 5,235
  • 8
  • 30
  • 56
4
votes
4 answers

TEdit onclick select all?

How to select all text of a TEdit1 whenever user click on it or click to select some text of it
Rafik Bari
  • 4,867
  • 18
  • 73
  • 123
4
votes
5 answers

Set the text selection color with jQuery. Demo not working

http://jsfiddle.net/uKdPM/ I've set the ::selection color in css, so when you highlight the text on the screen, the color of the text is pink. I'm trying to now override that color through jQuery when the page loads. Seems like it should be super…
android.nick
  • 11,069
  • 23
  • 77
  • 112