Refactor keyboard shortcuts to use "Cmd" instead of "Meta" for macOS

This commit is contained in:
mauro-balades 2024-09-28 22:10:35 +02:00
parent 7147fd2dfc
commit 5df1298bfd
2 changed files with 12 additions and 12 deletions

View file

@ -175,11 +175,11 @@ class KeyShortcutModifiers {
str += 'Shift+'; str += 'Shift+';
} }
if (this.#meta) { if (this.#meta) {
str += AppConstants.platform == 'macosx' ? 'Meta+' : 'Win+'; str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Win+';
} }
if (this.#accel) { if (this.#accel) {
if (AppConstants.platform == 'macosx') { if (AppConstants.platform == 'macosx') {
str += 'Cmd+'; str += 'Meta+';
} else { } else {
str += 'Ctrl+'; str += 'Ctrl+';
} }

View file

@ -461,16 +461,16 @@ var gZenBrowserManagerSidebar = {
_getWebPanelIcon(url, element) { _getWebPanelIcon(url, element) {
let { preferredURI } = Services.uriFixup.getFixupURIInfo(url); let { preferredURI } = Services.uriFixup.getFixupURIInfo(url);
element.setAttribute('image', `page-icon:${preferredURI.spec}`); element.setAttribute('image', `page-icon:${preferredURI.spec}`);
//fetch(`https://s2.googleusercontent.com/s2/favicons?domain_url=${preferredURI.spec}`).then(async (response) => { fetch(`https://s2.googleusercontent.com/s2/favicons?domain_url=${preferredURI.spec}`).then(async (response) => {
// if (response.ok) { if (response.ok) {
// let blob = await response.blob(); let blob = await response.blob();
// let reader = new FileReader(); let reader = new FileReader();
// reader.onload = function () { reader.onload = function () {
// element.setAttribute('image', reader.result); element.setAttribute('image', reader.result);
// }; };
// reader.readAsDataURL(blob); reader.readAsDataURL(blob);
// } }
//}); });
}, },
_getBrowserById(id) { _getBrowserById(id) {