Commit fc95bf76 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch 'keyboard-shortcuts-2-ee' into 'master'

EE Port: Improve Keyboard shortcut help screen

See merge request gitlab-org/gitlab-ee!15102
parents a43ada89 4a2edbb9
...@@ -46,7 +46,6 @@ export default class Shortcuts { ...@@ -46,7 +46,6 @@ export default class Shortcuts {
$(document).on('click.more_help', '.js-more-help-button', function clickMoreHelp(e) { $(document).on('click.more_help', '.js-more-help-button', function clickMoreHelp(e) {
$(this).remove(); $(this).remove();
$('.hidden-shortcut').show();
e.preventDefault(); e.preventDefault();
}); });
} }
...@@ -104,7 +103,6 @@ export default class Shortcuts { ...@@ -104,7 +103,6 @@ export default class Shortcuts {
return results; return results;
} }
$('.hidden-shortcut').show();
return $('.js-more-help-button').remove(); return $('.js-more-help-button').remove();
}); });
} }
......
...@@ -6,7 +6,7 @@ import { CopyAsGFM } from '../markdown/copy_as_gfm'; ...@@ -6,7 +6,7 @@ import { CopyAsGFM } from '../markdown/copy_as_gfm';
import { getSelectedFragment } from '~/lib/utils/common_utils'; import { getSelectedFragment } from '~/lib/utils/common_utils';
export default class ShortcutsIssuable extends Shortcuts { export default class ShortcutsIssuable extends Shortcuts {
constructor(isMergeRequest) { constructor() {
super(); super();
Mousetrap.bind('a', () => ShortcutsIssuable.openSidebarDropdown('assignee')); Mousetrap.bind('a', () => ShortcutsIssuable.openSidebarDropdown('assignee'));
...@@ -14,12 +14,6 @@ export default class ShortcutsIssuable extends Shortcuts { ...@@ -14,12 +14,6 @@ export default class ShortcutsIssuable extends Shortcuts {
Mousetrap.bind('l', () => ShortcutsIssuable.openSidebarDropdown('labels')); Mousetrap.bind('l', () => ShortcutsIssuable.openSidebarDropdown('labels'));
Mousetrap.bind('r', ShortcutsIssuable.replyWithSelectedText); Mousetrap.bind('r', ShortcutsIssuable.replyWithSelectedText);
Mousetrap.bind('e', ShortcutsIssuable.editIssue); Mousetrap.bind('e', ShortcutsIssuable.editIssue);
if (isMergeRequest) {
this.enabledHelp.push('.hidden-shortcut.merge_requests');
} else {
this.enabledHelp.push('.hidden-shortcut.issues');
}
} }
static replyWithSelectedText() { static replyWithSelectedText() {
......
...@@ -23,7 +23,5 @@ export default class ShortcutsNavigation extends Shortcuts { ...@@ -23,7 +23,5 @@ export default class ShortcutsNavigation extends Shortcuts {
Mousetrap.bind('g e', () => findAndFollowLink('.shortcuts-environments')); Mousetrap.bind('g e', () => findAndFollowLink('.shortcuts-environments'));
Mousetrap.bind('g l', () => findAndFollowLink('.shortcuts-metrics')); Mousetrap.bind('g l', () => findAndFollowLink('.shortcuts-metrics'));
Mousetrap.bind('i', () => findAndFollowLink('.shortcuts-new-issue')); Mousetrap.bind('i', () => findAndFollowLink('.shortcuts-new-issue'));
this.enabledHelp.push('.hidden-shortcut.project');
} }
} }
...@@ -11,7 +11,5 @@ export default class ShortcutsNetwork extends ShortcutsNavigation { ...@@ -11,7 +11,5 @@ export default class ShortcutsNetwork extends ShortcutsNavigation {
Mousetrap.bind(['down', 'j'], graph.scrollDown); Mousetrap.bind(['down', 'j'], graph.scrollDown);
Mousetrap.bind(['shift+up', 'shift+k'], graph.scrollTop); Mousetrap.bind(['shift+up', 'shift+k'], graph.scrollTop);
Mousetrap.bind(['shift+down', 'shift+j'], graph.scrollBottom); Mousetrap.bind(['shift+down', 'shift+j'], graph.scrollBottom);
this.enabledHelp.push('.hidden-shortcut.network');
} }
} }
...@@ -6,8 +6,6 @@ export default class ShortcutsWiki extends ShortcutsNavigation { ...@@ -6,8 +6,6 @@ export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() { constructor() {
super(); super();
Mousetrap.bind('e', ShortcutsWiki.editWiki); Mousetrap.bind('e', ShortcutsWiki.editWiki);
this.enabledHelp.push('.hidden-shortcut.wiki');
} }
static editWiki() { static editWiki() {
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
max-width: 98%; max-width: 98%;
} }
.modal-1040 {
@include media-breakpoint-up(xl) {
max-width: 1040px;
}
}
.modal-header { .modal-header {
background-color: $modal-body-bg; background-color: $modal-body-bg;
......
This diff is collapsed.
---
title: Clean up keyboard shortcuts help modal, removing and adding as needed
merge_request: 31642
author:
type: other
This diff is collapsed.
...@@ -2671,9 +2671,6 @@ msgstr "" ...@@ -2671,9 +2671,6 @@ msgstr ""
msgid "Certificate (PEM)" msgid "Certificate (PEM)"
msgstr "" msgstr ""
msgid "Change Label"
msgstr ""
msgid "Change Weight" msgid "Change Weight"
msgstr "" msgstr ""
...@@ -2686,6 +2683,9 @@ msgstr "" ...@@ -2686,6 +2683,9 @@ msgstr ""
msgid "Change assignee(s)." msgid "Change assignee(s)."
msgstr "" msgstr ""
msgid "Change label"
msgstr ""
msgid "Change milestone" msgid "Change milestone"
msgstr "" msgstr ""
...@@ -3742,6 +3742,9 @@ msgstr "" ...@@ -3742,6 +3742,9 @@ msgstr ""
msgid "Comment is being updated" msgid "Comment is being updated"
msgstr "" msgstr ""
msgid "Comment/Reply (quoting selected text)"
msgstr ""
msgid "Comments" msgid "Comments"
msgstr "" msgstr ""
...@@ -5281,9 +5284,15 @@ msgstr "" ...@@ -5281,9 +5284,15 @@ msgstr ""
msgid "Edit comment" msgid "Edit comment"
msgstr "" msgstr ""
msgid "Edit description"
msgstr ""
msgid "Edit environment" msgid "Edit environment"
msgstr "" msgstr ""
msgid "Edit epic description"
msgstr ""
msgid "Edit file" msgid "Edit file"
msgstr "" msgstr ""
...@@ -5296,25 +5305,22 @@ msgstr "" ...@@ -5296,25 +5305,22 @@ msgstr ""
msgid "Edit identity for %{user_name}" msgid "Edit identity for %{user_name}"
msgstr "" msgstr ""
msgid "Edit issue"
msgstr ""
msgid "Edit issues" msgid "Edit issues"
msgstr "" msgstr ""
msgid "Edit last comment (when focused on an empty textarea)" msgid "Edit public deploy key"
msgstr "" msgstr ""
msgid "Edit merge request" msgid "Edit stage"
msgstr "" msgstr ""
msgid "Edit public deploy key" msgid "Edit wiki page"
msgstr "" msgstr ""
msgid "Edit stage" msgid "Edit your most recent comment in a thread (from an empty textarea)"
msgstr "" msgstr ""
msgid "Edit wiki page" msgid "Editing"
msgstr "" msgstr ""
msgid "Elasticsearch" msgid "Elasticsearch"
...@@ -5737,6 +5743,9 @@ msgstr "" ...@@ -5737,6 +5743,9 @@ msgstr ""
msgid "Epics" msgid "Epics"
msgstr "" msgstr ""
msgid "Epics (Ultimate / Gold license only)"
msgstr ""
msgid "Epics Roadmap" msgid "Epics Roadmap"
msgstr "" msgstr ""
...@@ -6582,9 +6591,6 @@ msgstr "" ...@@ -6582,9 +6591,6 @@ msgstr ""
msgid "Find the newly extracted <code>Takeout/Google Code Project Hosting/GoogleCodeProjectHosting.json</code> file." msgid "Find the newly extracted <code>Takeout/Google Code Project Hosting/GoogleCodeProjectHosting.json</code> file."
msgstr "" msgstr ""
msgid "Finding Project File"
msgstr ""
msgid "Fingerprint" msgid "Fingerprint"
msgstr "" msgstr ""
...@@ -6627,12 +6633,6 @@ msgstr "" ...@@ -6627,12 +6633,6 @@ msgstr ""
msgid "FlowdockService|Flowdock is a collaboration web app for technical teams." msgid "FlowdockService|Flowdock is a collaboration web app for technical teams."
msgstr "" msgstr ""
msgid "Focus Filter"
msgstr ""
msgid "Focus Search"
msgstr ""
msgid "FogBugz Email" msgid "FogBugz Email"
msgstr "" msgstr ""
...@@ -7329,6 +7329,9 @@ msgstr "" ...@@ -7329,6 +7329,9 @@ msgstr ""
msgid "Go back" msgid "Go back"
msgstr "" msgstr ""
msgid "Go back (while searching for files"
msgstr ""
msgid "Go back to %{startTag}Open issues%{endTag} and select some issues to add to your board." msgid "Go back to %{startTag}Open issues%{endTag} and select some issues to add to your board."
msgstr "" msgstr ""
...@@ -7350,16 +7353,16 @@ msgstr "" ...@@ -7350,16 +7353,16 @@ msgstr ""
msgid "Go to file" msgid "Go to file"
msgstr "" msgstr ""
msgid "Go to file permalink" msgid "Go to file (MRs only)"
msgstr "" msgstr ""
msgid "Go to files" msgid "Go to file permalink (while viewing a file)"
msgstr "" msgstr ""
msgid "Go to finding file" msgid "Go to files"
msgstr "" msgstr ""
msgid "Go to groups" msgid "Go to find file"
msgstr "" msgstr ""
msgid "Go to issue boards" msgid "Go to issue boards"
...@@ -7380,45 +7383,60 @@ msgstr "" ...@@ -7380,45 +7383,60 @@ msgstr ""
msgid "Go to metrics" msgid "Go to metrics"
msgstr "" msgstr ""
msgid "Go to milestones"
msgstr ""
msgid "Go to network graph"
msgstr ""
msgid "Go to parent" msgid "Go to parent"
msgstr "" msgstr ""
msgid "Go to project" msgid "Go to project"
msgstr "" msgstr ""
msgid "Go to projects" msgid "Go to releases"
msgstr "" msgstr ""
msgid "Go to repository charts" msgid "Go to repository charts"
msgstr "" msgstr ""
msgid "Go to repository graph"
msgstr ""
msgid "Go to snippets" msgid "Go to snippets"
msgstr "" msgstr ""
msgid "Go to the activity feed" msgid "Go to the activity feed"
msgstr "" msgstr ""
msgid "Go to the milestone list"
msgstr ""
msgid "Go to the project's activity feed" msgid "Go to the project's activity feed"
msgstr "" msgstr ""
msgid "Go to the project's overview page" msgid "Go to the project's overview page"
msgstr "" msgstr ""
msgid "Go to todos" msgid "Go to wiki"
msgstr "" msgstr ""
msgid "Go to wiki" msgid "Go to your To-Do list"
msgstr "" msgstr ""
msgid "Go to your fork" msgid "Go to your fork"
msgstr "" msgstr ""
msgid "Go to your groups"
msgstr ""
msgid "Go to your issues"
msgstr ""
msgid "Go to your merge requests"
msgstr ""
msgid "Go to your projects"
msgstr ""
msgid "Go to your snippets"
msgstr ""
msgid "Golden Tanuki" msgid "Golden Tanuki"
msgstr "" msgstr ""
...@@ -8407,6 +8425,9 @@ msgstr "" ...@@ -8407,6 +8425,9 @@ msgstr ""
msgid "Issues" msgid "Issues"
msgstr "" msgstr ""
msgid "Issues / Merge Requests"
msgstr ""
msgid "Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable." msgid "Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable."
msgstr "" msgstr ""
...@@ -9822,18 +9843,6 @@ msgstr "" ...@@ -9822,18 +9843,6 @@ msgstr ""
msgid "Move this issue to another project." msgid "Move this issue to another project."
msgstr "" msgstr ""
msgid "Move to next file"
msgstr ""
msgid "Move to next unresolved discussion"
msgstr ""
msgid "Move to previous file"
msgstr ""
msgid "Move to previous unresolved discussion"
msgstr ""
msgid "MoveIssue|Cannot move issue due to insufficient permissions!" msgid "MoveIssue|Cannot move issue due to insufficient permissions!"
msgstr "" msgstr ""
...@@ -9903,9 +9912,6 @@ msgstr "" ...@@ -9903,9 +9912,6 @@ msgstr ""
msgid "Network" msgid "Network"
msgstr "" msgstr ""
msgid "Network Graph"
msgstr ""
msgid "Never" msgid "Never"
msgstr "" msgstr ""
...@@ -10034,6 +10040,12 @@ msgstr "" ...@@ -10034,6 +10040,12 @@ msgstr ""
msgid "Next" msgid "Next"
msgstr "" msgstr ""
msgid "Next file in diff (MRs only)"
msgstr ""
msgid "Next unresolved discussion (MRs only)"
msgstr ""
msgid "Nickname" msgid "Nickname"
msgstr "" msgstr ""
...@@ -11269,6 +11281,12 @@ msgstr "" ...@@ -11269,6 +11281,12 @@ msgstr ""
msgid "Previous Artifacts" msgid "Previous Artifacts"
msgstr "" msgstr ""
msgid "Previous file in diff (MRs only)"
msgstr ""
msgid "Previous unresolved discussion (MRs only)"
msgstr ""
msgid "Primary" msgid "Primary"
msgstr "" msgstr ""
...@@ -11665,10 +11683,7 @@ msgstr "" ...@@ -11665,10 +11683,7 @@ msgstr ""
msgid "Project Badges" msgid "Project Badges"
msgstr "" msgstr ""
msgid "Project File" msgid "Project Files"
msgstr ""
msgid "Project Files browsing"
msgstr "" msgstr ""
msgid "Project ID" msgid "Project ID"
...@@ -12738,9 +12753,6 @@ msgstr "" ...@@ -12738,9 +12753,6 @@ msgstr ""
msgid "Replaced all labels with %{label_references} %{label_text}." msgid "Replaced all labels with %{label_references} %{label_text}."
msgstr "" msgstr ""
msgid "Reply (quoting selected text)"
msgstr ""
msgid "Reply by email" msgid "Reply by email"
msgstr "" msgstr ""
...@@ -12819,6 +12831,9 @@ msgstr "" ...@@ -12819,6 +12831,9 @@ msgstr ""
msgid "Repository" msgid "Repository"
msgstr "" msgstr ""
msgid "Repository Graph"
msgstr ""
msgid "Repository Settings" msgid "Repository Settings"
msgstr "" msgstr ""
...@@ -13938,9 +13953,6 @@ msgstr "" ...@@ -13938,9 +13953,6 @@ msgstr ""
msgid "Show whitespace changes" msgid "Show whitespace changes"
msgstr "" msgstr ""
msgid "Show/hide this dialog"
msgstr ""
msgid "Showing %d event" msgid "Showing %d event"
msgid_plural "Showing %d events" msgid_plural "Showing %d events"
msgstr[0] "" msgstr[0] ""
...@@ -14486,6 +14498,9 @@ msgstr "" ...@@ -14486,6 +14498,9 @@ msgstr ""
msgid "Start merge train when pipeline succeeds" msgid "Start merge train when pipeline succeeds"
msgstr "" msgstr ""
msgid "Start search"
msgstr ""
msgid "Start the Runner!" msgid "Start the Runner!"
msgstr "" msgstr ""
...@@ -16091,6 +16106,9 @@ msgstr "" ...@@ -16091,6 +16106,9 @@ msgstr ""
msgid "Toggle the Performance Bar" msgid "Toggle the Performance Bar"
msgstr "" msgstr ""
msgid "Toggle this dialog"
msgstr ""
msgid "Toggle thread" msgid "Toggle thread"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment