input__clear: move desktop specific code to desktop.blocks and add some tests