Focus now transfers correctly between inventory and game.