Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/behavior-oncopy.js
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | function onstartselect(e) { | ||||
// We've chosen a mode and saved it now, but we don't actually update to | // We've chosen a mode and saved it now, but we don't actually update to | ||||
// apply any visual changes until the user actually starts making some | // apply any visual changes until the user actually starts making some | ||||
// kind of selection. | // kind of selection. | ||||
} | } | ||||
// When the selection range changes, apply CSS classes if the selection is | // When the selection range changes, apply CSS classes if the selection is | ||||
// nonempty. We don't want to make visual changes to the document immediately | // nonempty. We don't want to make visual changes to the document immediately | ||||
// when the user press the mouse button, since we aren't yet sure that | // when the user presses the mouse button, since we aren't yet sure that | ||||
// they are starting a selection: instead, wait for them to actually select | // they are starting a selection: instead, wait for them to actually select | ||||
// something. | // something. | ||||
function onchangeselect() { | function onchangeselect() { | ||||
if (!copy_mode) { | if (!copy_mode) { | ||||
return; | return; | ||||
} | } | ||||
var ranges = get_selected_ranges(); | var ranges = get_selected_ranges(); | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |