Skip to content

Commit 1f033b2

Browse files
committed
[#448] Fix(UX): Input variables copy internal value on Mod+C
1 parent c21aa60 commit 1f033b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/assets/javascripts/beak/widgets/ractives/input.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ RactiveInput = RactiveValueWidget.extend({
261261

262262
input:
263263
"""
264-
<label id="{{id}}" class="netlogo-widget netlogo-input-box netlogo-input {{#widget.oldSize}}old-size{{/}} {{classes}}" style="{{dims}}">
264+
<label id="{{id}}" class="netlogo-widget netlogo-input-box netlogo-input {{#widget.oldSize}}old-size{{/}} {{classes}}" style="{{dims}}"
265+
on-copy='@this.fire("copy-current-value", @this.get("internalValue"))'>
265266
<div class="netlogo-label">{{widget.variable}}</div>
266267
{{# widget.boxedValue.type === 'Number'}}
267268
<input

0 commit comments

Comments
 (0)