Fix performance issue when changing the selection rectangle.

Conflicts:

	src/gui/tileset_view.cpp
Tileset editor: enable shortcuts from the pattern list view too.
Don't force editors to support the clipboard.
Fix compilation issue.