BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
52ac5242
Commit
52ac5242
authored
Feb 23, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_13510' into 'master'
Adds "e" shortcut to issuable pages which redirects to the Edit page Closes #13510 See merge request !2945
parents
ad3433f9
89d8e72b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
shortcuts_issuable.coffee
app/assets/javascripts/shortcuts_issuable.coffee
+8
-0
_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+8
-0
shortcuts.png
doc/workflow/shortcuts.png
+0
-0
No files found.
app/assets/javascripts/shortcuts_issuable.coffee
View file @
52ac5242
...
...
@@ -24,6 +24,10 @@ class @ShortcutsIssuable extends ShortcutsNavigation
@
nextIssue
()
return
false
)
Mousetrap
.
bind
(
'e'
,
=>
@
editIssue
()
return
false
)
if
isMergeRequest
...
...
@@ -63,3 +67,7 @@ class @ShortcutsIssuable extends ShortcutsNavigation
# Focus the input field
replyField
.
focus
()
editIssue
:
->
$editBtn
=
$
(
'.issuable-edit'
)
Turbolinks
.
visit
(
$editBtn
.
attr
(
'href'
))
app/views/help/_shortcuts.html.haml
View file @
52ac5242
...
...
@@ -229,6 +229,10 @@
%td
.shortcut
.key
r
%td
Reply (quoting selected text)
%tr
%td
.shortcut
.key
e
%td
Edit issue
%tbody
{
class:
'hidden-shortcut merge_requests'
,
style:
'display:none'
}
%tr
%th
...
...
@@ -245,3 +249,7 @@
%td
.shortcut
.key
r
%td
Reply (quoting selected text)
%tr
%td
.shortcut
.key
e
%td
Edit merge request
doc/workflow/shortcuts.png
View replaced file @
ad3433f9
View file @
52ac5242
47.6 KB
|
W:
|
H:
24.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment