Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

keyboard.get_input_context() method conflict with Pythonista editor

Open killwas opened this issue 6 years ago • 0 comments
trafficstars

Description While trying out pythonista keyboards I found that the calculate keyboard produces strange results.

Typing an number in the empty line (conveniently using the Pythonista editor) the CalculatorView.label shows the number twice. For example, typing '4' results in '44 = 44'. Typing another number '45' yields '455 = 455'. The expression '4+5' gives '4+55 = 59'. Note the correct caluclation for the incorrect label text.

The KB Info keyboard shows the same phenomen. Probably no surprise. Something wrong with the keyboard.get_input_context() method?

  • it not only doubles numbers, but any charcter left of the cursor.
  • it stops doing it when moving the cursor, and starts again with the next input.
  • after using bachspace (aka delete) not only the twin last char is removed from the CalculatorView.label, but also its left neighbour. The text in the editor window is still correct.
  • it only hapens in the Pytonista app. :-(

So, maybe it is not the get_input_context() method, but the editor?

Reproducing

  1. Use Pythonista
  2. Enable the Pythonista keyboard
  3. Try the Calculator or the KB Info
  4. Type something

System Information

  • Pythonista 3.3 (330014), Default interpreter 3.6.1
  • iOS 12.4, model iPad6,8, resolution (portrait) 2048.0 x 2732.0 @ 2.0

killwas avatar Aug 22 '19 20:08 killwas