We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a06cc9 commit 7985a5fCopy full SHA for 7985a5f
app/try_ruby.rb
@@ -62,7 +62,8 @@ def initialize
62
63
#If hold down the control and the Enter key goes down, run
64
$document.on :keydown, '#editor' do |e|
65
- if e.key == "Enter" && (e.ctrl? || (@navigator.user_agent&.match?(/\b(Mac|iPad|iPhone|iPod)\b/) && e.meta?))
+ if e.key == "Enter" && ((e.ctrl? && !@navigator.user_agent&.match?(/\b(iPad|iPhone|iPod)\b/)) ||
66
+ (@navigator.user_agent&.match?(/\b(Mac|iPad|iPhone|iPod)\b/) && e.meta?))
67
e.prevent
68
do_run
69
end
0 commit comments