Added test on empty selection when deleting resource from shortkey