LeonMatthes / Autocompletion

A modern Autocompletion for your Squeak image
8 stars 3 forks source link

Selection overwrite fails #10

Closed ShirleyNekoDev closed 5 years ago

ShirleyNekoDev commented 5 years ago

Expected Behavior

writing while having selected text should delete the selected text and insert new input at its position

Current Behavior

the selection is deselected and new input is inserted at the front of the selection

Possible Solution

check for selections before handling the input events

Steps to Reproduce

  1. write a class name or message name
  2. select any character but the first
  3. write at least a single character

Context (Environment)

I'm used to this behavior from other text/code editors. It is useful when replacing e.g. spelling mistakes.