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

Make keyboard shortcuts work on load #65

Open
sapi opened this issue Jan 26, 2015 · 2 comments
Open

Make keyboard shortcuts work on load #65

sapi opened this issue Jan 26, 2015 · 2 comments

Comments

@sapi
Copy link
Contributor

sapi commented Jan 26, 2015

For some reason, the keyboard shortcuts don't work until something happens.

Steps to reproduce:

  1. Load MPT
  2. Press, eg, 'n', or click in the window and then press 'n'

If anything happens, the shortcuts start working.
This includes:

  • choosing a tutorial problem to display
  • attempting to login again, and dismissing the window

My best guess, without looking into it, is that the initial focus of the app is on something weird.
If that's the case, the fix could be as simple as a .focus_set

@sapi sapi added this to the MyPyTutor 3.1 milestone Jan 26, 2015
@starsnabove
Copy link

On 26/01/15 20:27, Sean Purdon wrote:

For some reason, the keyboard shortcuts don't work until something
happens.

Steps to reproduce:

  1. Load MPT
  2. Press, eg, 'n', or click in the window and then press 'n'

If /anything/ happens, the shortcuts start working.
This includes:

  • choosing a tutorial problem to display
  • attempting to login again, and dismissing the window

My best guess, without looking into it, is that the initial focus of
the app is on something weird.
If that's the case, the fix could be as simple as a |.focus_set|


Reply to this email directly or view it on GitHub
#65.

This was in the original version as a fix to an error when pressing n as
the is no "current" tutorial to go next from

@sapi
Copy link
Contributor Author

sapi commented Jan 26, 2015

I removed that code though! :/

(In any case, it shouldn't be an error; next after no tutorial is the first.)

@sapi sapi modified the milestones: Future Work, MyPyTutor 3.1 Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants