[BREAKING CHANGE] Move selection restrictions from tools to commands

Currently triggers (keyboard shortcuts) execute commands without
running these checks, so move them into the commands themselves.

Change-Id: I957a7989c21dfb6763aeecf167b0306bae89efa4
Merge "[BREAKING CHANGE] Move selection restrictions from tools to commands"