Fix command keyboard shortcuts
Prevent ActiveDocumentChanged events firing when document hasn't actually changed