mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
This isn't ideal, basically some browsers interact with keypress/keydown in different ways so this is a workaround but it's not perma
This commit is contained in:
parent
12107859bb
commit
34c2cf40fa
5 changed files with 35 additions and 5 deletions
|
@ -47,7 +47,13 @@ describe("undo button then redo button", function(){
|
|||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||
|
||||
var e = inner$.Event("keypress");
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
e.ctrlKey = true; // Control key
|
||||
e.which = 90; // z
|
||||
inner$("#innerdocbody").trigger(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue