Skip to content

Commit a995cf3

Browse files
committed
Fix Safari Ctrl+Enter handling in textarea to prevent unintended line breaks
1 parent a375f2a commit a995cf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/try_ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def initialize
6262
#If hold down the control and the Enter key goes down, run
6363
$document.on :keydown, '#editor' do |e|
6464
if e.key == "Enter" && e.ctrl?
65+
e.prevent
6566
do_run
6667
end
6768
end

0 commit comments

Comments
 (0)