thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

"Select Word" assigned to key stroke generates application error #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reproducible with version 1.9.9.7, on WindowsXP Home Edition, SP3. Python
2.6.2 is installed.

1. Tools / Options / Editor Options
2. Keystrokes tab
3. In Keystroke Options, select "Select Word" (would be easier if sorted),
assign to "Alt-Down" key, click on Add

Note: Alt-Down was not assigned before, "Select Word" didn't have a
keystroke assignment before.

4. Click OK

This opens a pop-up with the title "PyScripter - application error", and
the details in attachment. The key shortcut works, however. But everytime
the user changes an option, the same error message reappears.

Once PyScripter is closed, every time it is launched the same pop-up
appears and it stops PyScripter in its setup because the project is not
loaded and so on.

Removing the Select Word assignment removes the problem.

As I couldn't find where the configuration was stored, I couldn't
investigate the problem further.

Original issue reported on code.google.com by misch...@gmail.com on 31 May 2009 at 3:14

Attachments:

GoogleCodeExporter commented 9 years ago
Further tests:

- assigning "Select Word" to a different shortcut "Ctrl-W" works fine,
- assigning a different command to "Alt-Down" triggers the same problem,
- I exported the shortcuts to a file, and identified this as the shortcut:

    [Editor Shortcuts\Item82]
    Command=ecSelWord
    ShortCut=32808

The same shortcut (32808) is unique in that file, as is the command (ecSelWord).

So it appears the "Alt-Down" shortcut (code 32808) generates an application 
error
when it is used.

Original comment by misch...@gmail.com on 31 May 2009 at 3:46

GoogleCodeExporter commented 9 years ago
The Python Interactive Interpreter defines the following commands:

Command History
·              Alt-Up : previous command
·              Alt-Down : next command
·              Esc : clear command

These are documented in the help file under the topic "The Python Interactive
Intepreter".

These commands are not customizable and you cannot assign another editor 
command to
these shortcuts.  (Note that the Python Interactive console shares all other
shortcuts with the code editor.

Original comment by pyscripter on 31 May 2009 at 10:19