Fix loading of shortcuts in AnnotationDialog.
User-defined shortcuts are now loaded correctly for the AnnotationDialog.