Compare commits

..

No commits in common. "c07d4bae5520aa79d2e6f114347f056e3dc8ebb2" and "2dd4ed10cc48160a709648c5f2bc688c5ed4f532" have entirely different histories.

3 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "4.2.3",
"version": "4.2.2",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {

View File

@ -96,7 +96,7 @@ const emit = defineEmits([
]);
const keydownEvent = (e, key: string) => {
key !== 'space' && e.preventDefault();
e.preventDefault();
const { ctrlKey, shiftKey, altKey, metaKey } = e;
const modifiers: Array<string> = [];
ctrlKey && modifiers.push('control');
@ -126,7 +126,6 @@ const keydownEvent = (e, key: string) => {
break;
case 'space':
if (runPluginDisable || !config.value.perf.common.space) return;
e.preventDefault();
emit('choosePlugin');
break;
default:

View File

@ -77,10 +77,6 @@ const createPluginManager = (): any => {
};
const openPlugin = async (plugin, option) => {
ipcRenderer.send('msg-trigger', {
type: 'removePlugin',
});
window.initRubick();
if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') {
if (state.currentPlugin && state.currentPlugin.name === plugin.name) {
window.rubick.showMainWindow();
@ -107,6 +103,7 @@ const createPluginManager = (): any => {
message.error('启动应用出错,请确保启动应用存在!');
}
}
window.initRubick();
changePluginHistory({
...plugin,
...option,