compose: Don't close compose box on clicking bottom right keyboard shortcut.

Fixes #9803.
The compose box closes on any click in the document outside the compose
box except for an element with an anchor tag or in its parents.
This commit adds an anchor tag as parent of the keyboard shortcuts
icon.
This commit is contained in:
Shubham Padia
2018-06-22 23:00:33 +05:30
committed by Tim Abbott
parent 4f4aee6d10
commit 165636e0c4
2 changed files with 7 additions and 1 deletions

View File

@@ -241,3 +241,7 @@
cursor: pointer;
font-size: 20px;
}
#sidebar-keyboard-shortcuts a {
color: hsl(0, 0%, 1.2%); //#333
}

View File

@@ -34,7 +34,9 @@
</ul>
</div>
<div id="sidebar-keyboard-shortcuts">
<i id="keyboard-icon" class="fa fa-keyboard-o fa-2x" aria-hidden="true" data-html="true" data-overlay-trigger="keyboard-shortcuts" data-toggle="tooltip" title="{{ _('Keyboard shortcuts') }} <span class='hotkey-hint'>(?)</span>"></i>
<a data-overlay-trigger="keyboard-shortcuts">
<i class="fa fa-keyboard-o fa-2x" id="keyboard-icon" data-html="true" data-toggle="tooltip" title="{{ _('Keyboard shortcuts') }} <span class='hotkey-hint'>(?)</span>"></i>
</a>
</div>
</div>
</div>