mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
chat: Delete non-functional Alt-C shortcut handler
This commit is contained in:
parent
a1388b7876
commit
59848efc9b
1 changed files with 0 additions and 11 deletions
|
@ -258,17 +258,6 @@ exports.chat = (() => {
|
||||||
Tinycon.setBubble(0);
|
Tinycon.setBubble(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
const self = this;
|
|
||||||
$('body:not(#chatinput)').on('keypress', function (evt) {
|
|
||||||
if (evt.altKey && evt.which === 67) {
|
|
||||||
// Alt c focuses on the Chat window
|
|
||||||
$(this).blur();
|
|
||||||
self.show();
|
|
||||||
$('#chatinput').focus();
|
|
||||||
evt.preventDefault();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#chatinput').keypress((evt) => {
|
$('#chatinput').keypress((evt) => {
|
||||||
// if the user typed enter, fire the send
|
// if the user typed enter, fire the send
|
||||||
if (evt.key === 'Enter' && !evt.shiftKey) {
|
if (evt.key === 'Enter' && !evt.shiftKey) {
|
||||||
|
|
Loading…
Reference in a new issue