<div class="help_overlay" style="display:none"></div>
<div class="help_popup" style="display:none">
    <h2>Keyboard Shortcuts</h2>
    <div class="help_row">
        <h3>Site wide shortcuts</h3>
        <dl class="keyboard-mappings">
            <dt>?</dt>
            <dd>Bring up this help dialog</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>esc</dt>
            <dd>Hide this help dialog</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>/</dt>
            <dd>Focus search bar</dd>
        </dl>
    </div>
    <div class="help_row">
        <h3>Navigation</h3>
        <dl class="keyboard-mappings">
            <dt>j <em>or</em> n</dt>
            <dd>Move to next method or type</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>k <em>or</em> p</dt>
            <dd>Move to previous method or type</dd>
        </dl>
    {% if sources.versions|length > 1 %}
        <dl class="keyboard-mappings">
            <dt>v</dt>
            <dd>Move to next version</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>b</dt>
            <dd>Move to previous version</dd>
        </dl>
    {% endif %}
    </div>
    {% if sources.versions|length > 1 %}
    <div class="help_row">
        <h3>Diff</h3>
        <dl class="keyboard-mappings">
            <dt>&lt;shift&gt; + j</dt>
            <dd>Move to next method or type with a diff</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>&lt;shift&gt; + k</dt>
            <dd>Move to previous method or type with a diff</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>d</dt>
            <dd>Toggle diff mode</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>s</dt>
            <dd>Toggle side by side / inline mode</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>f</dt>
            <dd>Toggle full / strict diff</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>&lt;shift&gt; + v</dt>
            <dd>Move to next version to diff</dd>
        </dl>
        <dl class="keyboard-mappings">
            <dt>&lt;shift&gt; + b</dt>
            <dd>Move to previous version to diff</dd>
        </dl>
    </div>
    {% endif %}
</div>