/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** * Register generic keys to control zoom level of the given document. * Used by both the toolboxes and the browser console. * * @param {DOMWindow} * The window on which we should listent to key strokes and modify the zoom factor. * @param {KeyShortcuts} * KeyShortcuts instance where the zoom keys should be added.
*/
exports.register = function (window, shortcuts) { const bc = BrowsingContext.getFromWindow(window);
let zoomValue = parseFloat(Services.prefs.getCharPref(ZOOM_PREF)); const zoomIn = function (event) {
setZoom(zoomValue + 0.1);
event.preventDefault();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.