Close the dev-tools when reloading reduces memory leaks (by a lot)

This commit is contained in:
Corey Johnson
2012-04-04 09:44:53 -07:00
parent 5d90b902c3
commit 7e22d47256

View File

@@ -88,6 +88,7 @@
isAfterJavaScript:(bool)isAfterJavaScript {
if (isAfterJavaScript && type == KEYEVENT_RAWKEYDOWN && modifiers == KEY_META && code == 'R') {
_clientHandler->GetBrowser()->CloseDevTools();
_clientHandler->GetBrowser()->ReloadIgnoreCache();
return YES;
}