mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
fix alt c and escape
This commit is contained in:
parent
363d5d06b7
commit
c903cb3925
2 changed files with 9 additions and 9 deletions
|
@ -3640,6 +3640,7 @@ function Ace2Inner(){
|
|||
}else{
|
||||
var lineHeight = myselection.focusNode.offsetHeight; // line height of blank lines
|
||||
}
|
||||
|
||||
var heightOfChatIcon = parent.parent.$('#chaticon').height(); // height of the chat icon button
|
||||
lineHeight = (lineHeight *2) + heightOfChatIcon;
|
||||
var viewport = getViewPortTopBottom();
|
||||
|
@ -3704,11 +3705,11 @@ function Ace2Inner(){
|
|||
firstEditbarElement.focus();
|
||||
evt.preventDefault();
|
||||
}
|
||||
if ((!specialHandled) && altKey && keyCode == 67){
|
||||
if ((!specialHandled) && altKey && keyCode == 67 && type === "keydown"){
|
||||
// Alt c focuses on the Chat window
|
||||
$(this).blur();
|
||||
parent.parent.chat.show();
|
||||
parent.parent.chat.focus();
|
||||
parent.parent.$("#chatinput").focus();
|
||||
evt.preventDefault();
|
||||
}
|
||||
if ((!specialHandled) && evt.ctrlKey && shiftKey && keyCode == 50 && type === "keydown"){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue