mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 00:45:45 +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
|
- SB doesn't support tab-undo yet so :undo and "u" etc don't work
|
||||||
- :tabduplicate
|
- :tabduplicate
|
||||||
- :back/H, :forward,L
|
- :back/H, :forward,L
|
||||||
|
- :open songbird-internal-search searchString
|
||||||
|
Is this workable anyway? --djk
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
9 / and ? possibly reusing "Jump to" functionality directly.
|
9 / and ? possibly reusing "Jump to" functionality directly.
|
||||||
|
|||||||
@@ -621,7 +621,6 @@ function Bookmarks() //{{{
|
|||||||
// did not :open <tab> once before
|
// did not :open <tab> once before
|
||||||
this.getSearchEngines();
|
this.getSearchEngines();
|
||||||
|
|
||||||
|
|
||||||
function getShortcutOrURI(aURL, aPostDataRef)
|
function getShortcutOrURI(aURL, aPostDataRef)
|
||||||
{
|
{
|
||||||
var shortcutURL = null;
|
var shortcutURL = null;
|
||||||
@@ -689,7 +688,9 @@ function Bookmarks() //{{{
|
|||||||
}
|
}
|
||||||
return shortcutURL;
|
return shortcutURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = getShortcutOrURI(searchString, aPostDataRef);
|
url = getShortcutOrURI(searchString, aPostDataRef);
|
||||||
|
|
||||||
if (url == searchString)
|
if (url == searchString)
|
||||||
url = null;
|
url = null;
|
||||||
|
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ function Player() // {{{
|
|||||||
togglePlayPause: function togglePlayPause()
|
togglePlayPause: function togglePlayPause()
|
||||||
{
|
{
|
||||||
gSongbirdWindowController.doCommand("cmd_control_playpause");
|
gSongbirdWindowController.doCommand("cmd_control_playpause");
|
||||||
SBGetBrowser().mediaTab.mediaPage.highlightItem(_SBGetCurrentView().getIndexForItem(gMM.sequencer.currentItem));
|
focusTrack(gMM.sequencer.currentItem);
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleShuffle: function toggleShuffle()
|
toggleShuffle: function toggleShuffle()
|
||||||
|
|||||||
Reference in New Issue
Block a user