Bug report #3855

Python console gets stuck if you use [Enter] from the number pad

Added by Alister Hood almost 13 years ago. Updated almost 13 years ago.

Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13913


In the Python console:

Paste a command, e.g. the line below, and press the [Enter] key in the middle of your keyboard - it should work.

Now paste it again and press the [Enter] key in the number pad section of your keyboard - the cursor moves down to the next line, but the command is not run, and there appears to be no way to get it to run, or to exit out with Ctrl-C or something like you can do in most consoles (It seems you need to restart QGIS to use the Python console after this).

print "hello dude!" 

patch_for_3855.txt Magnifier (606 Bytes) Steven Mizuno, 2011-06-10 07:05 AM

Associated revisions

Revision 2fcf608a
Added by Martin Dobias almost 13 years ago

Python console: consider also Enter on keypad. Fixes #3855.

Contributed by Steven Mizuno


#1 Updated by Steven Mizuno almost 13 years ago

Here is a patch to add handling for the num keypad Enter.

#2 Updated by Alister Hood almost 13 years ago

Great, thanks.

#3 Updated by Martin Dobias almost 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Thanks for the patch. Applied in 2fcf608

Also available in: Atom PDF