Better cmd_paste code ala FF.
This commit is contained in:
Родитель
80c4045386
Коммит
1ea2d95575
|
@ -424,19 +424,15 @@ function DoClipCheckPaste()
|
|||
} else return false;
|
||||
}
|
||||
|
||||
/*
|
||||
Currently supports pasting text/unicode within INPUT and TEXTAREA
|
||||
*/
|
||||
function DoClipPaste()
|
||||
{
|
||||
|
||||
var pasteTxt=DoClipCheckPaste();
|
||||
|
||||
/* With 007 does not fail. Maybe now focus is on the context menu */
|
||||
if(document.commandDispatcher.focusedElement) {
|
||||
|
||||
document.commandDispatcher.focusedElement.value=pasteTxt;
|
||||
}
|
||||
/* 008 note - value is there in the clipboard, however somehow paste action does not happen.
|
||||
If you evaluate the canpaste you get false. */
|
||||
|
||||
var disp = document.commandDispatcher;
|
||||
var cont = disp.getControllerForCommand("cmd_paste");
|
||||
cont.doCommand("cmd_paste");
|
||||
}
|
||||
|
||||
function addToUrlbarHistory()
|
||||
|
|
|
@ -67,10 +67,6 @@
|
|||
|
||||
<toolbox>
|
||||
|
||||
<!-- command definitions -->
|
||||
<!-- WARNING: this should be enabled soon as the events menu fix is landed. -->
|
||||
<!-- we shall enable all the command="cmd_commandName" for each Menu Item -->
|
||||
<!-- so far, the -->
|
||||
<command id="cmd_BrowserOpenTab" oncommand="BrowserOpenTab()"/>
|
||||
<command id="cmd_BrowserSSR" oncommand="BrowserToogleSSR()"/>
|
||||
<command id="cmd_BrowserSiteSSR" oncommand="BrowserToogleSiteSSR()"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче