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

JavaScript / jQuery: how to get selected text in Firefox

How can I get the selected text (in a contenteditable div) in Firefox ? It would be enough for recent versions, no need to cover old versions. Say I have a contenteditable div that looks like the below and someone selects a text there and then hits…
user2571510
  • 11,167
  • 39
  • 92
  • 138
1
vote
1 answer

Disable Text Selection in Chromium Embedded?

I'm working on a desktop application that builds its interface in Chromium Embedded Framework. I need to disable text selection so the user can't drag over text (in a

or tag) to select it. Selecting text in desktop applications is not…

Keavon
  • 6,837
  • 9
  • 51
  • 79
1
vote
3 answers

How can I set a CSS rule to change the selection of all elements, not just text?

This CSS rule … ::selection { background-color:#f1f1f1; } ::-moz-selection { background-color:#f1f1f1; } … produces this effect in Chrome: As you can see, some parts of the selection is default blue. How can I make the entire selection grey?
1
vote
1 answer

iPad Safari - Text selection events

I'm creating a web page for iPad Safari browser, which is related to a book where user can select the text and change background color or add some comments/notes etc. I'm trying to track the events for text selection like text selection started,…
Satyam
  • 15,493
  • 31
  • 131
  • 244
1
vote
1 answer

Which aspect of MouseEvent, or something else, triggers visual highlighting?

The title manages to ask most of the question, however, I'm curious which part of using the LMB to click triggers the visual highlighting. What I mean by visual highlighting is the blue colored box (if you are on default) that shows what text you…
muiiu
  • 507
  • 1
  • 4
  • 11
1
vote
1 answer

Selecting Text within Graphics / Graphics2D

Selecting Text using Graphics/Graphics2D How do I select text from a string using the mouse when it's rendering in Graphics? Hey, I'm developing UI Controls for software I'm making in JAVA. I'm rendering everything using Graphics/Graphics2D and I…
Matthew Auld
  • 388
  • 1
  • 3
  • 18
1
vote
1 answer

Extending text selection contextual action bar in Android

I'm trying to extend the text selection contexual action bar with further actions. So I added an ActionCallback via setCustomSelectionActionModeCallback method. It works fine, BUT: I'm addind several icons, so they don't fit in the actionbar on…
Maniac
  • 774
  • 2
  • 7
  • 11
1
vote
1 answer

Chrome users can not select text from asp.net website pages

I have been debugging this but not getting anywhere. Some of the pages in the website doesn't allow users to select an area of the page and copy. Nothing happens when they try to select and the text doesn't get highlighted as well as they can't…
Anirudh
  • 581
  • 5
  • 14
  • 32
1
vote
0 answers

Mobile web, how to retain selected text on touch

I have been looking at using something like jQuery Text Editor (http://jqueryte.com/) to provide some simple html editing capabilities on a mobile app using the mobile web. When I use jQ TE on a mobile device, I can obviously select text, but the…
Lee
  • 8,354
  • 14
  • 55
  • 90
1
vote
1 answer

What's the method to get the webkit webview's currently selected text?

Using webkit version 1.6 I have been trying to figure out the class method/function to get the currently selected text. There's has_selection, but that only returns a bool. I'm on linux mint using python gtk3 with webkit 1.6. If I have to I'll use…
Quentin Engles
  • 2,744
  • 1
  • 20
  • 33
1
vote
0 answers

Why does selecting text in one TextView in ViewPager cause the system to think it is selected in another TextView?

I have a ViewPager with three TextViews that I update on change to make a book with three pages in memory (this page, prev page, and next page). What I'm sometimes seeing is when I select a word in the current TextView, it thinks I am selecting it…
yuttadhammo
  • 5,069
  • 6
  • 34
  • 45
1
vote
1 answer

Horrible performance on mousedown+mousemove with user-select: none

The title pretty much sums it up. I get horrible performance when dealing with lots of unselectable elements on a page and I try to implement a drag'n drop system. I have a timer setup to show it's interval, when you click and move your mouse…
Arjan
  • 484
  • 3
  • 11
1
vote
0 answers

deselect mouse selection in emacs when moving cursor with arrow keys

Since the last update my emacs exhibits the following behviour: I select some text by dragging the mouse over it. Then I move the cursor with the arrow keys and the selected region gets modified as if I was holding shift. I find this somewhat…
Martin Wiebusch
  • 1,681
  • 2
  • 11
  • 15
1
vote
0 answers

Mobile Safari text selection after input field focus iOS 5 vs iOS 6

I have some legacy html that needs to work on old and new browsers (down to IE7) as well as the iPad. The iPad is the biggest issues because of how text selection is handled. On a page there is a textarea as well as some text instructions. The…
Andy
  • 193
  • 1
  • 8
1
vote
1 answer

Text Selection Internet Explorer

I have tried with no success to disable text selection in this code. EDIT(Thanks techfoobar): http://jsfiddle.net/5uG63/3/ The only element that I have applied the majority of the code to is the element that has the three in it. The rest of them you…
dannyn382
  • 363
  • 2
  • 5
  • 15