atom-iex icon indicating copy to clipboard operation
atom-iex copied to clipboard

REPL should focus when tab gets focus via menu

Open indiejames opened this issue 10 years ago • 3 comments
trafficstars

When the REPL tab is focused via the "View->Panes->Focus Pane Below" or related methods it does not get focus, even though the focus has left the previously focused editor. Clicking on the pane works, but not using the menu.

indiejames avatar Jun 04 '15 01:06 indiejames

Does anybody have any insight to what might be causing this?

clessg avatar Jul 10 '16 23:07 clessg

Oddly, if I change TermView's focus method to this, it works:

focus:(second_call = false) ->
  @resizeToPane()
  @focusTerm()
  if !second_call
    setTimeout (=> @focus(true)), 0
  #super

clessg avatar Jul 11 '16 00:07 clessg

Sorry, I have completely neglected this plugin while working on other things. I will try your code later this week and see about a fix.

indiejames avatar Jul 12 '16 00:07 indiejames