shift-select and control-select patch