Skip to content

Commit a1053bb

Browse files
author
Walter Bender
committed
if paste div is open, paste contents when Enter is typed
1 parent 32992c6 commit a1053bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/activity.js

+5
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,11 @@ class Activity {
28682868
if (this.searchWidget.style.visibility === 'visible') {
28692869
return;
28702870
}
2871+
if (docById("paste").style.visibility === "visible") {
2872+
this.pasted();
2873+
docById("paste").style.visibility = "hidden";
2874+
return;
2875+
}
28712876
this.textMsg("Enter " + _("Play"));
28722877
let stopbt = document.getElementById("stop");
28732878
if (stopbt) {

0 commit comments

Comments
 (0)