Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL should focus when tab gets focus via menu #24

Open
indiejames opened this issue Jun 4, 2015 · 3 comments
Open

REPL should focus when tab gets focus via menu #24

indiejames opened this issue Jun 4, 2015 · 3 comments

Comments

@indiejames
Copy link
Owner

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 indiejames changed the title Add key binding to make it easier to switch between REPL and editor panes easier. REPL should focus when tab gets focus via menu Jun 4, 2015
@clessg
Copy link

clessg commented Jul 10, 2016

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

@clessg
Copy link

clessg commented Jul 11, 2016

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

@indiejames
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants