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

Getting the position of cursor in contentEditable return wrong position

I am trying to get the cursor position when I click a contenteditable element, I've already found the same question answered here and it works most of the time, but there is an issue in the following case : http://jsfiddle.net/mody5/ts5pjoqd/4/ I…
medBouzid
  • 7,484
  • 10
  • 56
  • 86
1
vote
0 answers

Select text in a TextBox with the cursor being on the first character

I want to select the whole text in a TextBox without jumping to the end. I tried different settings and came to the following - more general - observation: If you select text within a TextBox with your mouse you can do this from right to left. The…
Shnugo
  • 66,100
  • 9
  • 53
  • 114
1
vote
0 answers

Is it possible to call Text Selection Toolbar when click on a menu item on Action Bar in Android?

I need my app can show text selection toolbar after I click on a menu bar. I mean when I choose an item on menu bar may be like this Menu Bar, after that my device will appear Text Selection Toolbar like this Text Selection Toolbar Is it possible to…
Anh Trinh
  • 157
  • 1
  • 3
  • 12
1
vote
1 answer

Can ReSharper autocomplete closing brace for a selection?

Very often I need to enclose a selected piece of text or anything else with braces: Lorem ipsum dolor sit met. [-----] <- selection but when I hit for example { the selectecd text is replaced with the { instead. However I'd like it to be…
1
vote
2 answers

Google Maps API 3. Text selection in overlays

How to make a text selection in my overlays? Now my overlays inactive for text selection and creates a zoom when i double-click in overlay. http://img121.imageshack.us/img121/9022/overlayph.png
1
vote
0 answers

How to make a custom text view selectable?

I use DynamicLayout to draw text on a custom view, now I want it text can be selected, what should I do next? Now, I draw the text just simply like: DynamicLayout layout = new DynamicLayout(mText, mTextPaint, getMeasuredWidth() -…
vcokey
  • 11
  • 6
1
vote
0 answers

Why wasn't the `user-select` property standardised?

Questions such as this one and particularly this answer point to the standards proposal page here, but it was never actually standardised. What was the reasoning behind this? Why do we still have to exclusively use vendor prefixes or JavaScript for…
chossenger
  • 613
  • 6
  • 15
1
vote
2 answers

how to determine if the browser supports selectionStart if there is no text selected

This code will return true if the browser supports selectionStart and some text is selected, but if no text is selected it returns false (even on browsers that support it): if (el.selectionStart) { } How do you determine if the property is…
Tim
  • 5,371
  • 3
  • 32
  • 41
1
vote
0 answers

How to retrieve a selected text from Windows program

Is there some class in java with a method that can retrieve the text that we select with the text cursor on any Microsoft Windows program or document ? The reason why I want this feature is to make a program that can take this selected text as a…
web.learner
  • 101
  • 2
  • 8
1
vote
4 answers

Prevent text selection on dbl click

I need to prevent text selection on double click. But the text should be still selectable on mouse drag. Is it possible? If I try to remove selection on dblclick or mouseup it flashes (like in this jsfiddle) what is not desirable as well. UPD: I…
Taras Hupalo
  • 1,337
  • 2
  • 16
  • 29
1
vote
1 answer

Modify function to replace text as well as add at carat when button pressed

Ive built a little bit of code which adds text to a text area box depending on which button is pressed a very simple editor if you like. Currently the code just inserts the selected text where the cursor is, but if text is highlighted then I would…
Paul M
  • 3,937
  • 9
  • 45
  • 53
1
vote
0 answers

Selecting text in MacVim

One of the many nice features of MacVim is that after enabling this option: if has("gui_macvim") let macvim_hig_shift_movement = 1 endif it lets you to select text using Shift, Option and Arrows. However, is it possible to modify the selecting…
A S
  • 1,195
  • 2
  • 12
  • 26
1
vote
3 answers

How to do an invert selection in emacs?

I currently have a region of text selected. I want to kill/yank (or format in any other way) the whole buffer except the selected region. Is there any way in which I can do an invert selection in emacs and accomplish the same?
Avijit Gupta
  • 5,676
  • 3
  • 20
  • 35
1
vote
0 answers

vim text-object: place of the cursor

I've got a little question that's been running through my mind; when I use the text object selection, I find sometimes the cursor's positionning doesn't matter, and sometimes it does. For instance: a dummy text "between quotes" a dummy text (between…
benichka
  • 925
  • 1
  • 11
  • 32
1
vote
1 answer

Text selection tools in ActionBar are white on white background after selecting text in Dialog

Anyone had this issue, that after selecting text in dialog's EditText, toolbar appears with invisible action buttons (white on white background)? How do I set theme to a DialogFragment?