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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user