Allow keyboard to be disabled programatically.
WazWaz opened this issue · 2 comments
WazWaz commented
For a purely touch-based application, it would be a better UI if the app could turn off keyboard input (so that simple right-click works), re-enabling it at exit:
local keyboards = screen.getKeyboards()
screen.setKeyboards({})
... do touch-only UI ...
screen.setKeyboards(keyboards)
Other ways:
- screen.setTouchPreferred(true) -- makes shift-click-to-type.
- component.keyboard.setEnabled(false) -- component-level disabled/enable
Vexatos commented
I highly doubt that this belongs into this repository. If that's a feature request for OpenComputers, go to https://github.com/MightyPirates/OpenComputers/
WazWaz commented
Sorry, got confounded by one too many "OpenXyz" browser tabs. Moved to MightyPirates/OpenComputers#433