mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 22:08:00 +01:00
Fix editor#pasteClipboard on Windows.
This commit is contained in:
@@ -623,6 +623,13 @@ function Editor() //{{{
|
|||||||
|
|
||||||
pasteClipboard: function ()
|
pasteClipboard: function ()
|
||||||
{
|
{
|
||||||
|
if (liberator.has("Win32"))
|
||||||
|
{
|
||||||
|
this.executeCommand("cmd_paste");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FIXME: #93 (<s-insert> in the bottom of a long textarea bounces up)
|
||||||
let elem = window.document.commandDispatcher.focusedElement;
|
let elem = window.document.commandDispatcher.focusedElement;
|
||||||
|
|
||||||
if (elem.setSelectionRange && util.readFromClipboard())
|
if (elem.setSelectionRange && util.readFromClipboard())
|
||||||
|
|||||||
Reference in New Issue
Block a user