Fix query for keyboardNav.saveLinks()

Fixes #807.