Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
nexedi
converse.js
Commits
094a8a57
Commit
094a8a57
authored
Sep 18, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1201 Emoji picker appears when pressing enter
parent
0833478d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
CHANGES.md
CHANGES.md
+1
-0
dist/converse.js
dist/converse.js
+4
-1
src/converse-chatview.js
src/converse-chatview.js
+4
-1
No files found.
CHANGES.md
View file @
094a8a57
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
-
New config setting
[
enable_muc_push
](
https://conversejs.org/docs/html/configuration.html#enable-muc-push
)
-
New config setting
[
enable_muc_push
](
https://conversejs.org/docs/html/configuration.html#enable-muc-push
)
-
#1182 MUC occupants without nick or JID created
-
#1182 MUC occupants without nick or JID created
-
#1184 Notification error when message has no body
-
#1184 Notification error when message has no body
-
#1201 Emoji picker appears when pressing enter
## 4.0.0 (2018-09-07)
## 4.0.0 (2018-09-07)
...
...
dist/converse.js
View file @
094a8a57
...
@@ -61696,7 +61696,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
...
@@ -61696,7 +61696,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
} else if (ev.keyCode === _converse.keycodes.ESCAPE) {
} else if (ev.keyCode === _converse.keycodes.ESCAPE) {
return this.onEscapePressed(ev);
return this.onEscapePressed(ev);
} else if (ev.keyCode === _converse.keycodes.ENTER) {
} else if (ev.keyCode === _converse.keycodes.ENTER) {
_.invoke(this.emoji_dropdown, 'toggle');
if (this.emoji_dropdown && u.isVisible(this.emoji_dropdown.el.querySelector('.emoji-picker'))) {
this.emoji_dropdown.toggle();
}
return this.onFormSubmitted(ev);
return this.onFormSubmitted(ev);
} else if (ev.keyCode === _converse.keycodes.UP_ARROW && !ev.target.selectionEnd) {
} else if (ev.keyCode === _converse.keycodes.UP_ARROW && !ev.target.selectionEnd) {
...
@@ -61891,6 +61893,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
...
@@ -61891,6 +61893,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.renderEmojiPicker();
this.renderEmojiPicker();
const dropdown_el = this.el.querySelector('.toggle-smiley.dropup');
const dropdown_el = this.el.querySelector('.toggle-smiley.dropup');
this.emoji_dropdown = new bootstrap.Dropdown(dropdown_el, true);
this.emoji_dropdown = new bootstrap.Dropdown(dropdown_el, true);
this.emoji_dropdown.el = dropdown_el;
this.emoji_dropdown.toggle();
this.emoji_dropdown.toggle();
}
}
},
},
src/converse-chatview.js
View file @
094a8a57
...
@@ -898,7 +898,9 @@
...
@@ -898,7 +898,9 @@
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
ESCAPE
)
{
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
ESCAPE
)
{
return
this
.
onEscapePressed
(
ev
);
return
this
.
onEscapePressed
(
ev
);
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
ENTER
)
{
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
ENTER
)
{
_
.
invoke
(
this
.
emoji_dropdown
,
'
toggle
'
);
if
(
this
.
emoji_dropdown
&&
u
.
isVisible
(
this
.
emoji_dropdown
.
el
.
querySelector
(
'
.emoji-picker
'
)))
{
this
.
emoji_dropdown
.
toggle
();
}
return
this
.
onFormSubmitted
(
ev
);
return
this
.
onFormSubmitted
(
ev
);
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
UP_ARROW
&&
!
ev
.
target
.
selectionEnd
)
{
}
else
if
(
ev
.
keyCode
===
_converse
.
keycodes
.
UP_ARROW
&&
!
ev
.
target
.
selectionEnd
)
{
return
this
.
editEarlierMessage
();
return
this
.
editEarlierMessage
();
...
@@ -1065,6 +1067,7 @@
...
@@ -1065,6 +1067,7 @@
const
dropdown_el
=
this
.
el
.
querySelector
(
'
.toggle-smiley.dropup
'
);
const
dropdown_el
=
this
.
el
.
querySelector
(
'
.toggle-smiley.dropup
'
);
this
.
emoji_dropdown
=
new
bootstrap
.
Dropdown
(
dropdown_el
,
true
);
this
.
emoji_dropdown
=
new
bootstrap
.
Dropdown
(
dropdown_el
,
true
);
this
.
emoji_dropdown
.
el
=
dropdown_el
;
this
.
emoji_dropdown
.
toggle
();
this
.
emoji_dropdown
.
toggle
();
}
}
},
},
...
...
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