4,059 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
99
views
How to unselect an item in a List
Is it possible to unselect an item in a SwiftUI List on macOS? What I would like is for the selected item to be unselected when the user clicks on the selected item. Here is some code:
@State var ...
1
vote
0
answers
66
views
why would selection.getComposedRanges() fail with type error on IOS
I have an editor for use in a web component based Single Page App. Part of its functionality is to read the current selection, which is normally inside a content editable div, somewhere embedded ...
0
votes
1
answer
59
views
How to modify word selection in RichEdit control
When the user double-clicks on a word that has underscores in my RichEdit control, e.g. ABC_DEF_123 the RichEdit control stops marking at the underscore, e.g. double-clicking on the E character will ...
0
votes
0
answers
52
views
AgselectedRowCountComponent in ag-grid status panel shows all rows instead of filtered selected rows
I am using AgselectedRowCountComponent in the status panel of an ag-grid table to display the count of selected rows. However, when i filter the data and use the "Select all" functionality, ...
0
votes
1
answer
80
views
How to take away to columns in r by reference to their position in R? [closed]
I'm trying to automate a bunch of annual tables in my workplace that require the last column to be "Change" and shows the previous year taken away from this year.
I'd like to choose the last ...
0
votes
1
answer
70
views
Pasting text into caret position of last selected control
I've managed to write a JavaScript function that pastes text into the last selected control, no matter what control it is. I've also managed to make the function insert the text at the beginning of ...
1
vote
1
answer
64
views
Wrong input's selectionStart value after pressing arrow key
Here is the scenario to reproduce the problem:
Given input element has test string as a content. Focus given input element by clicking at the end of the input element
After focusing, caret is set at ...
0
votes
0
answers
50
views
How to Detect Text Selection and Handle Copy-Paste in Fabric.js?
I am using Fabric.js in an Angular application and trying to implement copy-paste functionality for text inside a Textbox. However, I am facing the following issues:
Fabric.js does not provide a ...
-3
votes
1
answer
150
views
Unable to write a regular expression, no AI I've tried works [closed]
I need a PCRE Regular Expression that will find and select a specified phrase at the beginning of sentences, only if it is preceded by a sentence that also contains the phrase. The first sentence ...
0
votes
0
answers
80
views
NavigationSplitView: Selection not resetting when list becomes empty
I am using the master-detail-concept in the content/detail area of a SwiftUI NavigationSplitView. Everything works perfectly if the selected item stays part of the list (the master). Changing the ...
1
vote
2
answers
351
views
Creating a slider for a horizontal navigation bar that 'slides' between options
I'm building a html page with a navigation bar at the top, in the center and horizontally aligned.
The idea is to have a 'sliding' selection bar, rather than a border that only appears on a selected ...
0
votes
3
answers
242
views
How to split a DOM node around a selection?
I have a contenteditable div, and I want to split a node around a selection. Using execCommand(), I can toggle "bold" on or off for a selection, so if I have:
<b>ABCDEFGHI</b>
...
1
vote
1
answer
202
views
How to select SwiftUI Table item on single click?
I have a SwiftUI Table on macOS. (I'm NOT using a List.) I want it to behave the same as a Cocoa table: when a user clicks on a row, focus should shift to the table AND the clicked row should be ...
1
vote
1
answer
69
views
DataTable selection with radioButtons not working
I have a p:dataTable that is editable via RowEditor. Now, I want to add a single selection per radio button (since rowSelection by simply clicking on the row does not work with cellEditor).
The issue ...
0
votes
0
answers
27
views
How to ensure <textarea>/<input> selection set in a keydown handler stays in place in mobile browsers?
Suppose I have a script that intends to implement "smart brackets" in <textarea> and <input> elements: whenever the user types in a bracket or quotation mark character while selection is ...