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.
2 parents 6cf3fa0 + c106e33 commit 11830f3Copy full SHA for 11830f3
app/try_ruby.rb
@@ -59,6 +59,13 @@ def initialize
59
# Bind run button
60
$document.on(:click, '#btn_run') { do_run }
61
62
+ #If hold down the control and the Enter key goes down, run
63
+ $document.on :keydown, '#editor' do |e|
64
+ if e.key == "Enter" && e.ctrl?
65
+ do_run
66
+ end
67
68
+
69
# Is this the playground? If so, run code specific to the playground without
70
# setting up the tutorial buttons.
71
if title_element.inner_text.match(/playground/i)
0 commit comments