Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
a449afcf
Commit
a449afcf
authored
May 15, 2017
by
Jonathan Wilkes
Browse files
fix #322: regression where selection in boxes didn't get created properly
parent
80fe5356
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
a449afcf
...
@@ -4890,6 +4890,7 @@ function select_text(cid, elem) {
...
@@ -4890,6 +4890,7 @@ function select_text(cid, elem) {
}
else
if
(
win
.
getSelection
)
{
}
else
if
(
win
.
getSelection
)
{
range
=
win
.
document
.
createRange
();
range
=
win
.
document
.
createRange
();
range
.
selectNodeContents
(
elem
);
range
.
selectNodeContents
(
elem
);
win
.
getSelection
().
removeAllRanges
();
win
.
getSelection
().
addRange
(
range
);
win
.
getSelection
().
addRange
(
range
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment