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

VBA word non-contiguous selection of all text instances

The code is meant to search through the current open Word document and select all instances of currently selected text. For example, I select "Casted" run the macro, and anywhere the text "Casted" appears, all of the instances are simultaneously…
Gen
  • 15
  • 3
0
votes
0 answers

Text selection error on mobile with "select all"

The "select all" function in my HTML site on mobile devices (and CTRL+A on windows) is selecting all the text of the entire site instead of just the current paragraph. This behavior is unacceptable and must be avoided. Is there a way to limit the…
THE MANUX
  • 113
  • 7
0
votes
0 answers

Text accidentally selected when clicking on navbar link (chrome mobile on Android)

When I select text on my html page subsequent clicks on the navbar links will select and deselect the text over and over again. This was tested on chrome (latest version) of a Samsung device with the latest version of android. I am attaching a…
THE MANUX
  • 113
  • 7
0
votes
1 answer

Selection changes when wrapping a string that spans across multiple tags

The range.surroundContents function is pretty straightforward but it doesn't work if your selection goes through multiple tags. For example, I have this string (the part in the square brackets is my selection. The brackets are not in the…
Whip
  • 1,891
  • 22
  • 43
0
votes
0 answers

Limiting the extent of text selection (not completely) in a HTML page

I am attempting to make it difficult for nefarious users to copy user content (poems, greeting messages, etc.) displayed on a webpage. Unfortunately I cannot use the well-known CSS selector user-select: none because this prevents all text selection…
user328414
  • 1,230
  • 1
  • 9
  • 15
0
votes
0 answers

Automatically highlight words when touchmoving finger on the text javascript mobile

When I move my finger, I want it to automatically highlighted the words that I go through. I saw some solutions that require long pressing then selecting the words, I want to bypass this. This features usually present in most IOS PDF viewers like…
0
votes
1 answer

SelectionArea not working properly on web app seen on mobile browser

I'm encountering an issue with SelectionArea on flutter/dart. I'm building a website for my professional activity and everything works fine except this. I have a Text widget that I wraped into a SelectionArea widget. It works on Chrome (when…
0
votes
1 answer

TextBox within DataTemplate, on GotFocus cannot assign SelectionStart?

I have a logic with my textbox which says, on focus move the selection start to the last character, so that the editing person can just continue writing. This worked perfectly with this: private void TextBox_GotFocus(object sender, EventArgs e) …
Vladan Strigo
  • 551
  • 1
  • 7
  • 19
0
votes
1 answer

Selected text remove element already wrapped in a span

I have a scenario/dilemma, I am a little stuck trying to figure out. Below will be my best of a visual representation. 1. I select This is dummy text to select 2. I bold and it gets wrapped with a span This is dummy text to select

Depicted
  • 45
  • 9

0
votes
1 answer

how to customise the toolbar for a flutter SelectableRegion

When text in a SelectableRegion widget is selected, the toolbar generated by materialTextSelectionControls has options for 'Copy' and 'SelectAll'. What is the best way to disable 'SelectAll' and how can the styling (in particular, text color) of the…
Frank H
  • 13
  • 4
0
votes
1 answer

position floating div under selection within viewport window

How do you position a floating div (i.e. position:absolute, e.g. dialog box) under text that has been selected while still showing the whole div within the viewport window even if the selection is at the edge?
W. Nema
  • 189
  • 1
  • 8
0
votes
0 answers

How do I NOT copy to the clipboard in JavaScript?

I have suddenly in recent months repeatedly suffered FF (last few??? versions) web pages overwriting my X primary selection ON THEIR OWN. This is an enormous vulnerability, as I usually paste with middle mouse button. If FF gets in after my…
Daniel
  • 521
  • 1
  • 4
  • 13
0
votes
1 answer

Deselect (any) text programmatically Android Compose

I am using Android Compose ExposedDropdownMenu, but its text can be selected with a long press. Using DisableSelection section does NOT help at all: DisableSelection { ExposedDropDownmenu(){...} } How to disable the text selection for this…
0
votes
1 answer

Is it possible to fully disable text selection for input?(Bugged user-select in input element (Chrome) ?)

I've been trying to find a way to fully prevent text input text selection (Chrome, v. 104) #testInput { user-select: none; pointer-events: none; width: 100%; }
Newstory
  • 3
  • 3
0
votes
0 answers

How to get text selection properties in Google Docs or Canvas

Is there a way to get the text selection properties from Google Docs? I am looking for something similar to window.getSelection() that works in Google docs or Canvas element. I am developing a Chrome extension and I wanted to get text and position…