mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 714832 - [Linux] the redo command should also have the ctrl-y shortcut; r=msucan
This commit is contained in:
parent
94bebcd9e1
commit
7da53ac80f
@ -131,6 +131,15 @@ const DEFAULT_KEYBINDINGS = [
|
||||
},
|
||||
];
|
||||
|
||||
if (Services.appinfo.OS == "WINNT" ||
|
||||
Services.appinfo.OS == "Linux") {
|
||||
DEFAULT_KEYBINDINGS.push({
|
||||
action: "redo",
|
||||
code: Ci.nsIDOMKeyEvent.DOM_VK_Y,
|
||||
accel: true,
|
||||
});
|
||||
}
|
||||
|
||||
var EXPORTED_SYMBOLS = ["SourceEditor"];
|
||||
|
||||
/**
|
||||
|
@ -98,6 +98,19 @@ function editorLoaded()
|
||||
|
||||
is(editor.getText(), "code-editor", "Ctrl-Shift-Z (redo) works");
|
||||
|
||||
editor.undo();
|
||||
|
||||
EventUtils.synthesizeKey("VK_Y", {accelKey: true}, testWin);
|
||||
if (Services.appinfo.OS == "WINNT" ||
|
||||
Services.appinfo.OS == "Linux") {
|
||||
is(editor.getText(), "code-editor",
|
||||
"CTRL+Y does redo on Linux and Windows");
|
||||
} else {
|
||||
is(editor.getText(), "source-editor",
|
||||
"CTRL+Y doesn't redo on machines other than Linux and Windows");
|
||||
editor.setText("code-editor");
|
||||
}
|
||||
|
||||
// Test selection methods.
|
||||
|
||||
editor.setSelection(0, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user