Enter key on Windows doesn't work

140 views
Skip to first unread message

Thorsten Kampe

unread,
Dec 13, 2014, 6:56:20 PM12/13/14
to npys...@googlegroups.com
Hi,

I'm running the example code from npyscreen's introduction in the documentation. It looks like the Enter key does not work correctly in the application. For instance I cannot leave the `TitleFilenameCombo` widget with Enter. And I can leave the main application only if I select the `Ok` button with the Space key and then press Enter.

The `TextDateCombo` and `TextFilename` widgets work fine. What can I do?

I'm running the latest 64bit Python 3.4.2 with the latest npyscreen.

Thorsten

Nicholas Cole

unread,
Dec 14, 2014, 8:17:26 AM12/14/14
to npys...@googlegroups.com
I probably need to add some additional keybindings for Windows. Your
terminal is probably not reporting the Enter Key in the way I
expected. I don't currently have a windows install that I can test.
I assume you are using Cygwin. I'll see if I can find a windows
installation I can test things on. In the meantime if you can try to
narrow down exactly what isn't working, I'll fix it.

N.
> --
> You received this message because you are subscribed to the Google Groups
> "npyscreen" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to npyscreen+...@googlegroups.com.
> To post to this group, send email to npys...@googlegroups.com.
> Visit this group at http://groups.google.com/group/npyscreen.
> For more options, visit https://groups.google.com/d/optout.

Thorsten Kampe

unread,
Dec 14, 2014, 1:10:15 PM12/14/14
to npys...@googlegroups.com
I'm running plain Windows with the curses module from here: www.lfd.uci.edu/~gohlke/pythonlibs/. Cygwin on the same computer works fine.

What doesn't work is leaving the npyscreen application with Enter. You first have to press Space, then "OK" turns to ">OK<" and then Enter works.

The second thing that doesn't work is leaving "Filename2" (the Example Code for TitleFilenameCombo from http://npyscreen.readthedocs.org/introduction.html#example-code). On Cygwin, you can select with Enter or Space and the next Enter leaves the widget. On Windows, only Space selects and sends you to the bottom of the screen. The next Enter takes you back to selecting your file name. 

Thorsten Kampe

unread,
Dec 14, 2014, 1:11:48 PM12/14/14
to npys...@googlegroups.com


Thorsten Kampe

unread,
Dec 14, 2014, 1:15:43 PM12/14/14
to npys...@googlegroups.com


Nicholas Cole

unread,
Dec 14, 2014, 3:20:01 PM12/14/14
to npys...@googlegroups.com
Thanks. That's let me track it down.  I'll post a fix first thing when I get in to work tomorrow morning.  It's just a missing handler.

Best wishes,

N.

On Sun, Dec 14, 2014 at 6:15 PM, Thorsten Kampe <thor...@thorstenkampe.de> wrote:

Nicholas Cole

unread,
Dec 15, 2014, 6:08:54 AM12/15/14
to npys...@googlegroups.com
This bug should be fixed in the 4.6.3 release just uploaded.

Thorsten Kampe

unread,
Dec 15, 2014, 6:49:36 AM12/15/14
to npys...@googlegroups.com
Leaving the application with Enter now works. Selecting files in TitleFilenameCombo and leaving TitleFilenameCombo with Enter still does not work.

Nicholas Cole

unread,
Dec 15, 2014, 7:34:41 AM12/15/14
to npys...@googlegroups.com
OK. I've gone through and added the relevant keybinding for windows
everywhere I can think of!

Thorsten Kampe

unread,
Dec 15, 2014, 10:01:36 AM12/15/14
to npys...@googlegroups.com
Selecting a file and leaving the widget works now perfectly in Textfilenamecombo. Thanks a milliion!
Reply all
Reply to author
Forward
0 new messages