mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Refactor keyboard shortcut functions in the query tool. Fix some incorrect keycodes and update docs.
Initial work by Sarah & Violet @ Pivotal, with additional tweaks by Murtuza @ EDB.
This commit is contained in:
@@ -217,7 +217,7 @@ def panel(trans_id, is_query_tool, editor_title):
|
||||
is_desktop_mode=app.PGADMIN_RUNTIME,
|
||||
is_linux=is_linux_platform,
|
||||
is_new_browser_tab=new_browser_tab,
|
||||
client_plaform=user_agent.platform
|
||||
client_platform=user_agent.platform
|
||||
)
|
||||
|
||||
|
||||
|
@@ -58,7 +58,7 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a id="btn-find-menu-find" href="#">
|
||||
<span> {{ _('Find') }}{% if client_plaform == 'macos' -%}
|
||||
<span> {{ _('Find') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+F)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+F)') }}{%- endif %}</span>
|
||||
@@ -66,7 +66,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<a id="btn-find-menu-find-next" href="#">
|
||||
<span> {{ _('Find next') }}{% if client_plaform == 'macos' -%}
|
||||
<span> {{ _('Find next') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+G)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+G)') }}{%- endif %}</span>
|
||||
@@ -74,7 +74,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<a id="btn-find-menu-find-previous" href="#">
|
||||
<span> {{ _('Find previous') }}{% if client_plaform == 'macos' -%}
|
||||
<span> {{ _('Find previous') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+Shift+G)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+Shift+G)') }}{%- endif %}</span>
|
||||
@@ -88,7 +88,7 @@
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a id="btn-find-menu-replace" href="#">
|
||||
<span> {{ _('Replace') }}{% if client_plaform == 'macos' -%}
|
||||
<span> {{ _('Replace') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+Shift+F)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+Shift+F)') }}{%- endif %}</span>
|
||||
@@ -139,23 +139,23 @@
|
||||
<span> {{ _('Unindent Selection (Shift+Tab)') }} </span>
|
||||
</a>
|
||||
<a id="btn-comment-line" href="#">
|
||||
<span> {{ _('Inline Comment Selection') }}{% if client_plaform == 'macos' -%}
|
||||
{{ _(' (Cmd+Shift+/)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+Shift+/)') }}{%- endif %}</span>
|
||||
</a>
|
||||
<a id="btn-uncomment-line" href="#">
|
||||
<span> {{ _('Inline Uncomment Selection') }}{% if client_plaform == 'macos' -%}
|
||||
{{ _(' (Cmd+Shift+.)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+Shift+.)') }}{%- endif %}</span>
|
||||
</a>
|
||||
<a id="btn-toggle-comment-block" href="#">
|
||||
<span> {{ _('Block Comment/Uncomment Selection') }}{% if client_plaform == 'macos' -%}
|
||||
<span> {{ _('Inline Comment Selection') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+/)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+/)') }}{%- endif %}</span>
|
||||
</a>
|
||||
<a id="btn-uncomment-line" href="#">
|
||||
<span> {{ _('Inline Uncomment Selection') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Cmd+.)') }}
|
||||
{% else %}
|
||||
{{ _(' (Ctrl+.)') }}{%- endif %}</span>
|
||||
</a>
|
||||
<a id="btn-toggle-comment-block" href="#">
|
||||
<span> {{ _('Block Comment/Uncomment Selection') }}{% if client_platform == 'macos' -%}
|
||||
{{ _(' (Shift+Cmd+/)') }}
|
||||
{% else %}
|
||||
{{ _(' (Shift+Ctrl+/)') }}{%- endif %}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user