if (chromeAccess & 8) altKey.push('meta');
if (altKey.length > 0) {
altKey = altKey.join(',');
- this._addShortcut(shortcuts, 'tv2-key-open-1', altKey, '1', 'VK_F1', 'TV2Developer.handleKeyShortcut(event)');
- this._addShortcut(shortcuts, 'tv2-key-repeat-1', altKey, '2', 'VK_F2', 'TV2Developer.handleButton(event)');
- this._addShortcut(shortcuts, 'tv2-key-quick-1', altKey, '3', 'VK_F3', 'TV2Developer.openQuickbox(event)');
+ this._addShortcut(shortcuts, 'tv2-key-open', altKey, '1', 'VK_F1', 'TV2Developer.handleKeyShortcut(event)');
+ this._addShortcut(shortcuts, 'tv2-key-repeat', altKey, '2', 'VK_F2', 'TV2Developer.handleButton(event)');
+ this._addShortcut(shortcuts, 'tv2-key-quick', altKey, '3', 'VK_F3', 'TV2Developer.openQuickbox(event)');
+ this._addShortcut(shortcuts, 'tv2-key-quick-go', altKey, '4', 'VK_F4', 'TV2Developer.openQuickbox(event, true)');
}
// first run, add icon
} catch(ex) {}
},
- openQuickbox: function(event) {
+ openQuickbox: function(event, autogo) {
var startUrl = '';
var urlbar = document.getElementById('urlbar');
+ if (typeof(autogo)=='undefined') autogo = false;
if (urlbar) {
startUrl = urlbar.value;
}
- window.openDialog('chrome://tv2developer/content/quickbox.xul','tv2quickbox','modal,centerscreen,chrome,resizable=no,title=no', startUrl);
+ window.openDialog('chrome://tv2developer/content/quickbox.xul','tv2quickbox','modal,centerscreen,chrome,resizable=no,title=no', startUrl, autogo);
},
/* Options */
(Mac: <code>Command+F2</code>)</li>
<li>Genvejstast til quick link dialogen: <code>ALT+3</code>
(Mac: <code>Command+F3</code>)</li>
+ <li>Brug quicklink direkte fra adresselinjen - indtast en forkortet URL og tryk: <code>ALT+4</code>
+ (Mac: <code>Command+F4</code>)</li>
<li>Links opfører sig som normale links, således <code>CTRL</code> kan bruges til at åbne i ny tab, <code>CTRL+SHIFT</code> i en ny tab i baggrunden, <code>SHIFT</code> i ny vindue, osv..</li>
<li>(Bemærk at på mac er det nødvendigt at slå accesskeys til - dette kan gøres under indstillingerne i pluginen).</li>
</ul>