1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:17:58 +01:00

Fix editor#pasteClipboard on Windows.

This commit is contained in:
Doug Kearns
2009-03-12 22:44:13 +11:00
parent ed79b24a01
commit a37f61028d

View File

@@ -623,6 +623,13 @@ function Editor() //{{{
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;
if (elem.setSelectionRange && util.readFromClipboard())