1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 22:07:59 +01:00

'B' works now as it is supposed to do

This commit is contained in:
Martin Stubenschrott
2007-04-24 19:47:35 +00:00
parent 3294a0d361
commit a98f9fd379
2 changed files with 21 additions and 5 deletions

View File

@@ -1480,10 +1480,26 @@ function bufshow(filter, in_comp_window)
completion_show_list(); completion_show_list();
} }
else // in the preview window else // in the preview window
{
if(g_bufshow == true)
{
setTimeout(function ()
{ {
var items = get_buffer_completions(filter); var items = get_buffer_completions(filter);
preview_window_fill(items); preview_window_fill(items);
preview_window_show(); preview_window_show();
g_bufshow = true;
preview_window.selectItem(preview_window.getItemAtIndex(gBrowser.mTabContainer.selectedIndex));
}, 100);
}
else
{
var items = get_buffer_completions(filter);
preview_window_fill(items);
preview_window_show();
g_bufshow = true;
preview_window.selectItem(preview_window.getItemAtIndex(gBrowser.mTabContainer.selectedIndex));
}
} }
} }

View File

@@ -830,7 +830,7 @@ var buffer_changed_listener =
else if(aFlag & Components.interfaces.nsIWebProgressListener.STATE_STOP) else if(aFlag & Components.interfaces.nsIWebProgressListener.STATE_STOP)
{ {
//alert('stopchange'); //alert('stopchange');
buffer_preview_update(); //buffer_preview_update();
} }
return 0; return 0;
}, },
@@ -838,7 +838,7 @@ var buffer_changed_listener =
// This fires when the location bar changes i.e load event is confirmed // This fires when the location bar changes i.e load event is confirmed
// or when the user switches tabs // or when the user switches tabs
onLocationChange: function(aProgress, aRequest, aURI) { /*alert('locchange'); buffer_preview_update();*/ return 0; }, onLocationChange: function(aProgress, aRequest, aURI) { /*alert('locchange');*/buffer_preview_update(); return 0; },
onProgressChange:function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress){ return 0; }, onProgressChange:function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress){ return 0; },
onStatusChange: function() {return 0;}, onStatusChange: function() {return 0;},
onSecurityChange: function() {return 0;}, onSecurityChange: function() {return 0;},