editor: use calculated clip-rect
editor: update documentation
editor: use symbolic keycodes

When writing new ones, it always feels a bit like guesswork if the
upper- or lower-case ascii-code should be used. So let's just skip
the issue and use the symbolic ones.