You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This severely limits its usability. The fix under Linux is as follows, but evidently testing is needed on Mac and Windows, which I'm not equipped to do.
interface.py
defkeyPressEvent(self, data):
#lines omittedelifdata.modifiers() ==Qt.ControlModifier:
# # Handle the Control key. I would've expected us to have to test# # for Qt.ControlModifier, but on (my!) OSX Qt.MetaModifier does# # correspond to the Control key. I've read something that suggests# # that it's different on other platforms.# # see http://doc.qt.io/qt-5/qt.html#KeyboardModifier-enumifQt.Key_A<=key<=Qt.Key_Z:
# # The microbit treats an input of \x01 as Ctrl+A, etc.msg=bytes([1+key-Qt.Key_A])
self.serial.write(msg)
The board now responds correctly to ctrl-A ctrl-B ctrl-C ctrl-D and ctrl-E
The text was updated successfully, but these errors were encountered:
This severely limits its usability. The fix under Linux is as follows, but evidently testing is needed on Mac and Windows, which I'm not equipped to do.
interface.py
The board now responds correctly to ctrl-A ctrl-B ctrl-C ctrl-D and ctrl-E
The text was updated successfully, but these errors were encountered: