This commit is contained in:
parent
ced6070b2f
commit
e197ce92c3
6 changed files with 16 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmReset": "Are you sure want to reset all keyboard shortcuts to default settings?",
|
||||
"notBatchRemove": "Notebooks do not support batch deletion",
|
||||
"confirmRemoveAll": "Are you sure you want to delete all selected files?",
|
||||
"microphoneDenied": "Need to allow Siyuan to access the microphone in System Preferences",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmReset": "¿Está seguro de que desea restablecer todos los atajos de teclado a la configuración predeterminada?",
|
||||
"notBatchRemove": "Los portátiles no admiten la eliminación por lotes",
|
||||
"confirmRemoveAll": "¿Está seguro de que desea eliminar todos los archivos seleccionados?",
|
||||
"microphoneDenied": "Necesito permitir que Siyuan acceda al micrófono en Preferencias del Sistema",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmReset": "Voulez-vous vraiment réinitialiser tous les raccourcis clavier aux paramètres par défaut ?",
|
||||
"notBatchRemove": "Les blocs-notes ne prennent pas en charge la suppression par lots",
|
||||
"confirmRemoveAll": "Êtes-vous sûr de vouloir supprimer tous les fichiers sélectionnés ?",
|
||||
"microphoneDenied": "Vous devez autoriser Siyuan à accéder au microphone dans les Préférences Système",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmReset": "確定將所有快捷鍵都恢復為默認設置?",
|
||||
"notBatchRemove": "筆記本不支持批量刪除",
|
||||
"confirmRemoveAll": "确定删除选中的所有文件?",
|
||||
"microphoneDenied": "需在系統偏好設置中允許思源訪問麥克風",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmReset": "确定将所有快捷键都恢复为默认设置?",
|
||||
"notBatchRemove": "笔记本不支持批量删除",
|
||||
"confirmRemoveAll": "确定删除选中的所有文件?",
|
||||
"microphoneDenied": "需在系统偏好设置中允许思源访问麦克风",
|
||||
|
|
|
@ -4,6 +4,7 @@ import {showMessage} from "../dialog/message";
|
|||
import {fetchPost} from "../util/fetch";
|
||||
import {ipcRenderer} from "electron";
|
||||
import {exportLayout} from "../layout/util";
|
||||
import {confirmDialog} from "../dialog/confirmDialog";
|
||||
|
||||
export const keymap = {
|
||||
element: undefined as Element,
|
||||
|
@ -212,14 +213,16 @@ export const keymap = {
|
|||
keymap._search("", "");
|
||||
});
|
||||
keymap.element.querySelector("#keymapResetBtn").addEventListener("click", () => {
|
||||
window.siyuan.config.keymap = Constants.SIYUAN_KEYMAP;
|
||||
fetchPost("/api/setting/setKeymap", {
|
||||
data: Constants.SIYUAN_KEYMAP,
|
||||
}, () => {
|
||||
window.location.reload();
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_HOTKEY, hotKey2Electron(window.siyuan.config.keymap.general.toggleWin.custom));
|
||||
/// #endif
|
||||
confirmDialog(window.siyuan.languages.reset, window.siyuan.languages.confirmReset, () => {
|
||||
window.siyuan.config.keymap = Constants.SIYUAN_KEYMAP;
|
||||
fetchPost("/api/setting/setKeymap", {
|
||||
data: Constants.SIYUAN_KEYMAP,
|
||||
}, () => {
|
||||
window.location.reload();
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_HOTKEY, hotKey2Electron(window.siyuan.config.keymap.general.toggleWin.custom));
|
||||
/// #endif
|
||||
});
|
||||
});
|
||||
});
|
||||
const keymapListElement = keymap.element.querySelector("#keymapList");
|
||||
|
|
Loading…
Add table
Reference in a new issue