Various bugs corrected around accesskey auto-assignment