PCBNew Hijacking Keys In Scripting Console
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On OS X 10.9.5 using KiCad Rev 5171 with scripting enabled, I cannot type some letters into the scripting console.
For example, I'm trying to import the pcbnew Python module:
Welcome To PyCrust 0.9.8 - KiCAD Python Shell
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
imprt pcbnew
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'imprt' is not defined
The 'o' key is being hijacked by PCBNew, and if I click on the canvas without doing anything else, it tries to help me place a module, which makes sense because that what the 'o' hotkey is used for. It seems that the 'o' key is the only one being hijacked at the moment. I suspect it's related specifically to the "Place Module" function because if I try modifying the hotkey to something else (say 'p') then that key no longer works in the scripting console.
My 5 second work around, change the "Place Module" hotkey to CMD+O (which is listed as CTRL+O in the Hotkey Editor...but that might be another bug?).
tags: | added: python |
Changed in kicad: | |
status: | Incomplete → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Also you spelled import wrongly in your prompt example. I am not sure if that is what you are trying to illustrate. I see similar behaivour on linux with 5171, but I am able to make the prompt work by putting the cursor in the end of the latest prompt line with the >>> chars in the beginning. Can you reproduce?