diff --git a/resources/po/ar.po b/resources/po/ar.po index 0eab961f..afacd78a 100644 --- a/resources/po/ar.po +++ b/resources/po/ar.po @@ -31,7 +31,7 @@ msgstr "الوضع المخفي" msgid "Settings" msgstr "الإعدادات" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/bg.po b/resources/po/bg.po index d7c0922a..1ca23433 100644 --- a/resources/po/bg.po +++ b/resources/po/bg.po @@ -31,7 +31,7 @@ msgstr "Режим \"инкогнито\"" msgid "Settings" msgstr "Настройки" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/cs.po b/resources/po/cs.po index fd1a6c1f..95eef55f 100644 --- a/resources/po/cs.po +++ b/resources/po/cs.po @@ -1,15 +1,7 @@ msgid "" msgstr "" -"Project-Id-Version: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: \n" -"Last-Translator: Amerey.eu \n" -"Language-Team: \n" -"Language: cs\n" -"MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.1.1\n" +"X-Generator: fill-pot-po/2.1.9\n" #: src/components/indicator/clearHistoryDialog.ts:23 msgid "Cancel" @@ -39,7 +31,7 @@ msgstr "Anonymní režim" msgid "Settings" msgstr "Nastavení" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "Bez popisu" @@ -557,4 +549,4 @@ msgstr "Barva" #: src/utils/ui.ts:13 msgid "Pano" -msgstr "Pano" +msgstr "Pano" \ No newline at end of file diff --git a/resources/po/da.po b/resources/po/da.po index ce359035..4fa316cc 100644 --- a/resources/po/da.po +++ b/resources/po/da.po @@ -31,7 +31,7 @@ msgstr "Inkognitotilstand" msgid "Settings" msgstr "Indstillinger" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/de.po b/resources/po/de.po index 1080973f..d3cd6cc3 100644 --- a/resources/po/de.po +++ b/resources/po/de.po @@ -31,7 +31,7 @@ msgstr "Inkognito-Modus" msgid "Settings" msgstr "Einstellungen" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/el.po b/resources/po/el.po index 193cda5e..e27bf414 100644 --- a/resources/po/el.po +++ b/resources/po/el.po @@ -31,7 +31,7 @@ msgstr "Ανώνυμης" msgid "Settings" msgstr "Ρυθμίσεις" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/en.po b/resources/po/en.po index b60c0d0d..da177861 100644 --- a/resources/po/en.po +++ b/resources/po/en.po @@ -31,7 +31,7 @@ msgstr "Incognito Mode" msgid "Settings" msgstr "Settings" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/es.po b/resources/po/es.po index eb4f4256..e5eeb889 100644 --- a/resources/po/es.po +++ b/resources/po/es.po @@ -31,7 +31,7 @@ msgstr "Modo incógnito" msgid "Settings" msgstr "Configuración" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/et.po b/resources/po/et.po index 094a7e5e..8b1e326c 100644 --- a/resources/po/et.po +++ b/resources/po/et.po @@ -31,7 +31,7 @@ msgstr "Inkognito režiim" msgid "Settings" msgstr "Seaded" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/fi.po b/resources/po/fi.po index bb24b539..c6c08d5e 100644 --- a/resources/po/fi.po +++ b/resources/po/fi.po @@ -31,7 +31,7 @@ msgstr "Incognito-tila" msgid "Settings" msgstr "Asetukset" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/fr.po b/resources/po/fr.po index cd9c6e7a..7588f5cd 100644 --- a/resources/po/fr.po +++ b/resources/po/fr.po @@ -31,7 +31,7 @@ msgstr "Mode incognito" msgid "Settings" msgstr "Paramètres" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/he.po b/resources/po/he.po index 884046da..c7bb8737 100644 --- a/resources/po/he.po +++ b/resources/po/he.po @@ -31,7 +31,7 @@ msgstr "מצב גלישה בסתר" msgid "Settings" msgstr "הגדרות" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/hr.po b/resources/po/hr.po index e6f0d18d..fc8646ca 100644 --- a/resources/po/hr.po +++ b/resources/po/hr.po @@ -31,7 +31,7 @@ msgstr "" msgid "Settings" msgstr "" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/hu.po b/resources/po/hu.po index 7db57262..7782c23a 100644 --- a/resources/po/hu.po +++ b/resources/po/hu.po @@ -31,7 +31,7 @@ msgstr "Inkognitómód" msgid "Settings" msgstr "Beállítások" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/is.po b/resources/po/is.po index 71d4b788..8e8cc34b 100644 --- a/resources/po/is.po +++ b/resources/po/is.po @@ -31,7 +31,7 @@ msgstr "Huliðsstilling" msgid "Settings" msgstr "Stillingar" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/it.po b/resources/po/it.po index d28094c9..e767ed9a 100644 --- a/resources/po/it.po +++ b/resources/po/it.po @@ -31,7 +31,7 @@ msgstr "Modalità di navigazione in incognito" msgid "Settings" msgstr "Impostazioni" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/ja.po b/resources/po/ja.po index 761422fb..876882c6 100644 --- a/resources/po/ja.po +++ b/resources/po/ja.po @@ -31,7 +31,7 @@ msgstr "シークレットモード" msgid "Settings" msgstr "設定" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/ko.po b/resources/po/ko.po index 59bda1ab..2c2d9b57 100644 --- a/resources/po/ko.po +++ b/resources/po/ko.po @@ -31,7 +31,7 @@ msgstr "시크릿 모드" msgid "Settings" msgstr "설정" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/nl.po b/resources/po/nl.po index 2f95b0c0..b9da2a7f 100644 --- a/resources/po/nl.po +++ b/resources/po/nl.po @@ -31,7 +31,7 @@ msgstr "Incognitomodus" msgid "Settings" msgstr "Voorkeuren" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/no.po b/resources/po/no.po index cc1d76a7..32fd0118 100644 --- a/resources/po/no.po +++ b/resources/po/no.po @@ -31,7 +31,7 @@ msgstr "Inkognitomodus" msgid "Settings" msgstr "Innstillinger" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/oc.po b/resources/po/oc.po index 4933ff84..2e2e6dc0 100644 --- a/resources/po/oc.po +++ b/resources/po/oc.po @@ -31,7 +31,7 @@ msgstr "Mòde incognito" msgid "Settings" msgstr "Paramètres" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/pano@elhan.io.pot b/resources/po/pano@elhan.io.pot index f0fd2c20..45cda544 100644 --- a/resources/po/pano@elhan.io.pot +++ b/resources/po/pano@elhan.io.pot @@ -332,7 +332,7 @@ msgstr "" msgid "New shortcut" msgstr "" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/pl.po b/resources/po/pl.po index c83a317a..12e8936f 100644 --- a/resources/po/pl.po +++ b/resources/po/pl.po @@ -31,7 +31,7 @@ msgstr "Tryb Incognito" msgid "Settings" msgstr "Ustawienia" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/pt.po b/resources/po/pt.po index b26521e7..3d1a0f1f 100644 --- a/resources/po/pt.po +++ b/resources/po/pt.po @@ -31,7 +31,7 @@ msgstr "Modo de navegação anónima" msgid "Settings" msgstr "Configurações" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/pt_BR.po b/resources/po/pt_BR.po index 662decd3..2954543a 100644 --- a/resources/po/pt_BR.po +++ b/resources/po/pt_BR.po @@ -31,7 +31,7 @@ msgstr "Modo anônimo" msgid "Settings" msgstr "Configurações" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/ro.po b/resources/po/ro.po index 0f9000b5..ec19e448 100644 --- a/resources/po/ro.po +++ b/resources/po/ro.po @@ -31,7 +31,7 @@ msgstr "Modul incognito" msgid "Settings" msgstr "Setări" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/ru.po b/resources/po/ru.po index 40f932a5..20ddefd3 100644 --- a/resources/po/ru.po +++ b/resources/po/ru.po @@ -31,7 +31,7 @@ msgstr "Режим инкогнито" msgid "Settings" msgstr "Настройки" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/sk.po b/resources/po/sk.po index a195407c..5d7e5c41 100644 --- a/resources/po/sk.po +++ b/resources/po/sk.po @@ -31,7 +31,7 @@ msgstr "Režim inkognito" msgid "Settings" msgstr "Nastavenia" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/sv.po b/resources/po/sv.po index bd3e622a..22d638dd 100644 --- a/resources/po/sv.po +++ b/resources/po/sv.po @@ -31,7 +31,7 @@ msgstr "Inkognitoläge" msgid "Settings" msgstr "Inställningar" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/tr.po b/resources/po/tr.po index 70673fd5..52a5dd02 100644 --- a/resources/po/tr.po +++ b/resources/po/tr.po @@ -31,7 +31,7 @@ msgstr "Gizli Mod" msgid "Settings" msgstr "Ayarlar" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/uk.po b/resources/po/uk.po index 84ce50dd..ca2bdaba 100644 --- a/resources/po/uk.po +++ b/resources/po/uk.po @@ -31,7 +31,7 @@ msgstr "Режим анонімного перегляду" msgid "Settings" msgstr "Параметри" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/vi.po b/resources/po/vi.po index e741412f..faefba71 100644 --- a/resources/po/vi.po +++ b/resources/po/vi.po @@ -31,7 +31,7 @@ msgstr "Chế Độ Ẩn Danh" msgid "Settings" msgstr "Cài Đặt" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/resources/po/zh.po b/resources/po/zh.po index f1a04b81..aefc7065 100644 --- a/resources/po/zh.po +++ b/resources/po/zh.po @@ -31,7 +31,7 @@ msgstr "隐身模式" msgid "Settings" msgstr "设置" -#: src/components/linkPanoItem.ts:37 +#: src/components/linkPanoItem.ts:45 msgid "No Description" msgstr "" diff --git a/src/components/linkPanoItem.ts b/src/components/linkPanoItem.ts index 9b1c8d39..010080e8 100644 --- a/src/components/linkPanoItem.ts +++ b/src/components/linkPanoItem.ts @@ -1,4 +1,12 @@ -import { ActorAlign } from '@gi-types/clutter10'; +import { + ActorAlign, + ButtonEvent, + EVENT_PROPAGATE, + KEY_ISO_Enter, + KEY_KP_Enter, + KEY_Return, + KeyEvent, +} from '@gi-types/clutter10'; import { File, Settings } from '@gi-types/gio2'; import { uri_parse, UriFlags } from '@gi-types/glib2'; import { BoxLayout, Label } from '@gi-types/st1'; @@ -6,7 +14,7 @@ import { PanoItem } from '@pano/components/panoItem'; import { ClipboardContent, clipboardManager, ContentType } from '@pano/utils/clipboardManager'; import { DBItem } from '@pano/utils/db'; import { registerGObjectClass } from '@pano/utils/gjs'; -import { _, getCachePath, getCurrentExtension, openUrlInBrowser as openLinkInBrowser } from '@pano/utils/shell'; +import { _, getCachePath, getCurrentExtension, openLinkInBrowser } from '@pano/utils/shell'; const DEFAULT_LINK_PREVIEW_IMAGE_NAME = 'link-preview.svg'; @@ -129,8 +137,26 @@ export class LinkPanoItem extends PanoItem { value: this.dbItem.content, }), ); - if (this.settings.get_boolean('open-links-in-browser')) { + } + + override vfunc_key_press_event(event: KeyEvent): boolean { + super.vfunc_key_press_event(event); + if ( + this.settings.get_boolean('open-links-in-browser') && + (event.keyval === KEY_Return || event.keyval === KEY_ISO_Enter || event.keyval === KEY_KP_Enter) + ) { + openLinkInBrowser(this.dbItem.content); + } + + return EVENT_PROPAGATE; + } + + override vfunc_button_release_event(event: ButtonEvent): boolean { + super.vfunc_button_release_event(event); + if (event.button === 1 && this.settings.get_boolean('open-links-in-browser')) { openLinkInBrowser(this.dbItem.content); } + + return EVENT_PROPAGATE; } } diff --git a/src/utils/shell.ts b/src/utils/shell.ts index 3cdbfb72..89ec5c77 100644 --- a/src/utils/shell.ts +++ b/src/utils/shell.ts @@ -239,7 +239,7 @@ export function debounce(func, wait) { }; } -export const openUrlInBrowser = (url: string) => { +export const openLinkInBrowser = (url: string) => { try { app_info_launch_default_for_uri(url, null); } catch (e) {