mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 12:47:59 +01:00
Remove Window special casing from Editor#pasteClipboard.
This commit is contained in:
@@ -24,12 +24,6 @@ var Editor = Module("editor", {
|
|||||||
selectedText: function () String(Editor.getEditor(null).selection),
|
selectedText: function () String(Editor.getEditor(null).selection),
|
||||||
|
|
||||||
pasteClipboard: function (clipboard, toStart) {
|
pasteClipboard: function (clipboard, toStart) {
|
||||||
// TODO: I don't think this is needed anymore? --djk
|
|
||||||
if (util.OS.isWindows) {
|
|
||||||
this.executeCommand("cmd_paste");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let elem = dactyl.focusedElement;
|
let elem = dactyl.focusedElement;
|
||||||
if (elem.inputField)
|
if (elem.inputField)
|
||||||
elem = elem.inputField;
|
elem = elem.inputField;
|
||||||
|
|||||||
Reference in New Issue
Block a user