migrate to wpf

This commit is contained in:
pypy
2021-02-05 03:16:36 +09:00
parent 17d8811790
commit 97a4dbf4d3
13 changed files with 2211 additions and 1718 deletions

View File

@@ -67,9 +67,9 @@ speechSynthesis.getVoices();
document.addEventListener('keyup', function (e) {
if (e.ctrlKey) {
if (e.shiftKey && e.code === 'KeyI') {
if (e.key === 'I') {
AppApi.ShowDevTools();
} else if (e.code === 'KeyR') {
} else if (e.key === 'r') {
location.reload();
}
}
@@ -3455,6 +3455,18 @@ speechSynthesis.getVoices();
}
};
$app.methods.minimizeWindow = function () {
AppApi.MinimizeMainWindow();
};
$app.methods.toggleMaximizeWindow = function () {
AppApi.ToggleMaximizeMainWindow();
};
$app.methods.closeWindow = function () {
AppApi.CloseMainWindow();
};
$app.methods.openExternalLink = function (link) {
this.$confirm(`${link}`, 'Open External Link', {
confirmButtonText: 'Confirm',