ensure selection has a valid index before redrawing it
prevent crash when right-clicking with no selection (thanks igor)
Merge pull request #2 from ftrvxmtrx/button-4
select on button 4 before activating
add mouse scrolling with scrollbar or mouse wheel
add mouse selection and activation
allow more characters + clear with ESC