Sanitize logic that prevents editing in readOnly ranges

It was really quite misguided before.
[show-hint addon] Improve heuristic for keeping or closing the pop-up
[show-hint addon] Remove unused variable
[show-hint addon] More careful positioning of pop-up
[show-hint addon] Close pop-up on blur, make page-up work when near top of list