refactor, fix key commands when items are hidden; bump version to 1.2.2