We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44410cd commit 0374f3fCopy full SHA for 0374f3f
lib/codemirror.js
@@ -41,6 +41,7 @@
41
// This is woefully incomplete. Suggestions for alternative methods welcome.
42
var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);
43
var mac = ios || /Mac/.test(platform);
44
+ var chromeOS = /\bCrOS\b/.test(userAgent);
45
var windows = /win/i.test(platform);
46
47
var presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
@@ -3680,7 +3681,7 @@
3680
3681
ourIndex = doc.sel.primIndex;
3682
}
3683
- if (e.altKey) {
3684
+ if (chromeOS ? e.shiftKey && e.metaKey : e.altKey) {
3685
type = "rect";
3686
if (!addNew) ourRange = new Range(start, start);
3687
start = posFromMouse(cm, e, true, true);
0 commit comments