1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 20:14:12 +01:00

Refactor player#togglePlayPause.

This commit is contained in:
Doug Kearns
2009-03-26 01:04:02 +11:00
parent 683d569eb2
commit a5b6ec3478
3 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ BUGS:
- SB doesn't support tab-undo yet so :undo and "u" etc don't work
- :tabduplicate
- :back/H, :forward,L
- :open songbird-internal-search searchString
Is this workable anyway? --djk
FEATURES:
9 / and ? possibly reusing "Jump to" functionality directly.

View File

@@ -621,7 +621,6 @@ function Bookmarks() //{{{
// did not :open <tab> once before
this.getSearchEngines();
function getShortcutOrURI(aURL, aPostDataRef)
{
var shortcutURL = null;
@@ -689,7 +688,9 @@ function Bookmarks() //{{{
}
return shortcutURL;
}
url = getShortcutOrURI(searchString, aPostDataRef);
if (url == searchString)
url = null;

View File

@@ -365,7 +365,7 @@ function Player() // {{{
togglePlayPause: function togglePlayPause()
{
gSongbirdWindowController.doCommand("cmd_control_playpause");
SBGetBrowser().mediaTab.mediaPage.highlightItem(_SBGetCurrentView().getIndexForItem(gMM.sequencer.currentItem));
focusTrack(gMM.sequencer.currentItem);
},
toggleShuffle: function toggleShuffle()