1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 11:25:45 +01:00

Move liberator.{register,trigger}Callback to CommandLine.

This commit is contained in:
Doug Kearns
2009-07-11 00:03:10 +10:00
parent 6bea2bb081
commit c062cf48df
4 changed files with 89 additions and 86 deletions

View File

@@ -15,9 +15,9 @@ function Player() // {{{
services.add("propertyManager","@songbirdnest.com/Songbird/Properties/PropertyManager;1", Ci.sbIPropertyManager);
// Register Callbacks for searching.
liberator.registerCallback("change", modes.SEARCH_VIEW_FORWARD, function (str) { player.onSearchKeyPress(str); });
liberator.registerCallback("submit", modes.SEARCH_VIEW_FORWARD, function (str) { player.onSearchSubmit(str); });
liberator.registerCallback("cancel", modes.SEARCH_VIEW_FORWARD, function () { player.onSearchCancel(); });
commandline.registerCallback("change", modes.SEARCH_VIEW_FORWARD, function (str) { player.onSearchKeyPress(str); });
commandline.registerCallback("submit", modes.SEARCH_VIEW_FORWARD, function (str) { player.onSearchSubmit(str); });
commandline.registerCallback("cancel", modes.SEARCH_VIEW_FORWARD, function () { player.onSearchCancel(); });
// interval (milliseconds)
function seek(interval, direction)