Handling shortcut is wrappedd inside MenusBeginning() and MenusEnded(), so we
need to always enable the standard shortcut items in MenusBeginning(), if we would otherwise enable them only asynchronously. Fixes Cut/Copy/Paste via shortcuts. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@443 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
d5e2e814a4
commit
0e7170b49e
@@ -1452,9 +1452,9 @@ BrowserWindow::_UpdateClipboardItems()
|
||||
// there anyway. This works so fast that the user can never see
|
||||
// the wrong enabled state when the menu opens until the result
|
||||
// message arrives.
|
||||
fCutMenuItem->SetEnabled(false);
|
||||
fCopyMenuItem->SetEnabled(false);
|
||||
fPasteMenuItem->SetEnabled(false);
|
||||
fCutMenuItem->SetEnabled(true);
|
||||
fCopyMenuItem->SetEnabled(true);
|
||||
fPasteMenuItem->SetEnabled(true);
|
||||
|
||||
CurrentWebView()->WebPage()->SendEditingCapabilities();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user