Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
98ad22d2
Commit
98ad22d2
authored
Dec 27, 2018
by
Natalia Tepluhina
Committed by
Phil Hughes
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added handleKeySubmit method to match EE
parent
32f80629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/notes/components/note_form.vue
app/assets/javascripts/notes/components/note_form.vue
+5
-2
No files found.
app/assets/javascripts/notes/components/note_form.vue
View file @
98ad22d2
...
@@ -149,6 +149,9 @@ export default {
...
@@ -149,6 +149,9 @@ export default {
return
shouldResolve
||
shouldToggleState
;
return
shouldResolve
||
shouldToggleState
;
},
},
handleKeySubmit
()
{
this
.
handleUpdate
();
},
handleUpdate
(
shouldResolve
)
{
handleUpdate
(
shouldResolve
)
{
const
beforeSubmitDiscussionState
=
this
.
discussionResolved
;
const
beforeSubmitDiscussionState
=
this
.
discussionResolved
;
this
.
isSubmitting
=
true
;
this
.
isSubmitting
=
true
;
...
@@ -216,8 +219,8 @@ export default {
...
@@ -216,8 +219,8 @@ export default {
class=
"note-textarea js-gfm-input js-note-text js-autosize markdown-area js-vue-issue-note-form js-vue-textarea qa-reply-input"
class=
"note-textarea js-gfm-input js-note-text js-autosize markdown-area js-vue-issue-note-form js-vue-textarea qa-reply-input"
aria-label=
"Description"
aria-label=
"Description"
placeholder=
"Write a comment or drag your files here…"
placeholder=
"Write a comment or drag your files here…"
@
keydown.meta.enter=
"handle
Update
();"
@
keydown.meta.enter=
"handle
KeySubmit
();"
@
keydown.ctrl.enter=
"handle
Update
();"
@
keydown.ctrl.enter=
"handle
KeySubmit
();"
@
keydown.up=
"editMyLastNote();"
@
keydown.up=
"editMyLastNote();"
@
keydown.esc=
"cancelHandler(true);"
@
keydown.esc=
"cancelHandler(true);"
></textarea>
></textarea>
...
...
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