bugfix: recalculate based on selection THEN handle next keystroke