Skip to content

Up and down cursor keys in G-Code viewer block after a single use #1035

@ianmackinnon

Description

@ianmackinnon

Steps to reproduce:

  1. Open Pronterface with a G-Code file: pronterface my-file.gcode
  2. Navigate layers using “U” and “D” keys
  3. Navigate layers using up and down cursor keys
  4. Try to navigate layers again using “U” and “D” keys

Observed behaviour: “U” and “D” keys work repeatedly, but as soon as a cursor key is pressed, navigating layers becomes blocked and no further input is received from either cursor keys or “U”/“D” keys. Navigating layers becomes functional again after mouse input of some kind, eg. left-clicking in the viewer.

Some initial investigation in the code suggests that keypress() in gcview.py does not get called at all after the first cursor key input, until wx.CallAfter(self.Refresh) is triggered, eg. by mouse input.

I am running the lastest source from the master branch (commit 5f98a78) on Ubuntu 19.10 using Python 3.7 and wxPython 4.0.7.post2.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions