Skip to content

Commit 629a48f

Browse files
committed
Edit try_ruby.rb
1 parent 0623323 commit 629a48f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/try_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def initialize
6262

6363
#If hold down the control and the Enter key goes down, run
6464
$document.on :keydown, '#editor' do |e|
65-
if (e.key == "Enter" && (e.ctrl? && !Helper.ios?)) || ((Helper.macos? || Helper.ios?) && e.meta?)
65+
if ((e.ctrl? && !Helper.ios?) || ((Helper.macos? || Helper.ios?) && e.meta?)) && e.key == "Enter"
6666
e.prevent
6767
do_run
6868
end

0 commit comments

Comments
 (0)