Commits

Georg Brandl committed cfeb5ba

Allow empty accesskey to avoid giving an access key.

Comments (0)

Files changed (1)

sphinx/jinja2glue.py

     """Helper to output each access key only once."""
     if '_accesskeys' not in context:
         context.vars['_accesskeys'] = {}
-    if key not in context.vars['_accesskeys']:
+    if key and key not in context.vars['_accesskeys']:
         context.vars['_accesskeys'][key] = 1
         return 'accesskey="%s"' % key
     return ''