Move auto-pair handling after bindings processing

It wreaks havoc with capture handlers, etc., otherwise.
Clipboard item input: Don't accept invalid selections