Skip to content

Commit

Permalink
Don't have input widget loose focus after sending line to irb
Browse files Browse the repository at this point in the history
The input widget is disabled while the input is evaluated by irb and
re-enabled after it finishes. This process makes the input widget loose
focus. Now this is avoided
  • Loading branch information
stcrocco committed Oct 8, 2011
1 parent 8f8cdb7 commit 0006f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/irb/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def initialize parent = nil
@input.completion_mode = KDE::GlobalSettings::CompletionAuto
@controller.connect SIGNAL(:ready) do
@input.enabled = true
@input.set_focus if is_active_window
end
@ui.restart_irb.connect(SIGNAL(:clicked)) do
@controller.restart_irb
Expand Down

0 comments on commit 0006f52

Please sign in to comment.