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
4
votes
1 answer

How to use javascript touch events to select text on touchscreen

I have this javascript with jQuery to do the job on computer-screens with mouse and keyboard connected: For starting the selection of text on screen: $("body").on("mousedown", ".myDiv", async function(e) { //do something }); When…
4
votes
0 answers

How to hide/show text selection controls in flutter

I am working with text editor in flutter which is scrollable and whenever there is text selection control in editor, it scrolls along with editor and overlaps all other widgets. Basically what I need to achieve is to hide the text selection controls…
blaze bnayak
  • 123
  • 1
  • 11
4
votes
3 answers

Select entire text from current line in Linux using a keyboard shortcut

I've been using Ubuntu/VS Code for a week and I've been struggling with text selection. In my mac if I want to select text starting from a position until the end of the text I can easily do that with Command + Shift + arrow, but I just can't figure…
4
votes
0 answers

How to know which word is clicked in a article in Flutter

I'm tring to using Flutter to building a reading application, where I want users to tap in the article and the word clicked will be highlighted. Is there a way to know which child is clicked in flutter? Or I have to using a list of Textspan to…
user6456568
  • 579
  • 9
  • 23
4
votes
1 answer

Does "text selection mode" work the same for all views & devices

The documentation for WebView.emulateShiftHeld() says: Use this method to put the WebView into text selection mode. Do not rely on this functionality; it will be deprecated in the future. What does "put the WebView into text selection mode"…
Regex Rookie
  • 10,432
  • 15
  • 54
  • 88
4
votes
1 answer

angular 2 - set a selection on an elementRef

I have this selection: let selection = window.getSelection(); And this elementRef: @ViewChild('contentEditable') public el: ElementRef; And for example this text is inside the contenteditable elementRef: This is some text Where i selected…
Martijn van den Bergh
  • 1,434
  • 1
  • 20
  • 40
4
votes
3 answers

Text selection inside inline-blocks without space between

I have a problem with text selection in Chrome. I have two spans styled as inline-blocks (same happens with divs). When I try to double click text inside one of the blocks all neighbor blocks are selected. It can be solved by putting at least one…
Andrej
  • 1,679
  • 1
  • 26
  • 40
4
votes
5 answers

How to disable user text selection in WebView [React-Native]

I'm trying to figure out how to disable text selection while in a React-Native WebView for my ios app. Using the css style user-select set to none on the site doesn't seem to be working while using a device or simulator but it does work in a…
Ryan Wilson
  • 1,743
  • 3
  • 15
  • 26
4
votes
2 answers

safari getSelection() not working

I've been puzzled as to why this behaviour happens on safari. I'm trying to get selection when i type some text and for that i use the window.getSelection() and it works perfectly fine on Firefox, Chrome, Opera and so on giving me something…
galart
  • 56
  • 1
  • 7
4
votes
1 answer

How can I enable child inputs text selection in Mozilla Firefox using CSS?

Let's consider the following scenario. I have the following page where all rendered elements must be non-selectable.