1
0
mirror of https://github.com/alei1180/curlone.git synced 2025-11-24 22:53:34 +02:00

feat: Добавление поддержки отправки запроса комбинацией Ctrl+Enter

This commit is contained in:
Dmitry Ivanov
2025-01-12 16:28:07 +03:00
parent ecfd5a1174
commit c532fa8bb8

View File

@@ -350,6 +350,12 @@
copyToClipboard(outputText);
});
convertInput.addEventListener("keyup", function (e){
if (e.keyCode == 13 && e.ctrlKey){
convertButton.click();
}
});
const highlighter = await createHighlighterCore({
themes: [theme],
langs: [lang],