mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-13 07:42:47 +09:00
add shortcut key to go up directory level
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -8,4 +8,6 @@ node_modules
|
||||
.npmrc
|
||||
!.env.example
|
||||
.vscode/
|
||||
build.zip
|
||||
build.zip
|
||||
win32_rsa
|
||||
win32_rsa.pub
|
||||
15
README.md
15
README.md
@@ -1,4 +1,11 @@
|
||||
# win32.run
|
||||
### Yet another fake Windows XP in the browser, but with a File System and comes with it, Programs.
|
||||
Microsoft and Windows XP trademarks & logos definitely belong to Microsoft Corporation. All the programs' names and logos (Foxit, Word, WinRar, Internet Explorer, etc.) are of their rightful copyright holders.
|
||||
**win32.run** is purely for the purpose of nostalgia. I have no intent and no right to monetize win32.run, but you may occasionally see ads when playing third-party games.
|
||||
# Introduction
|
||||
|
||||
Yet another Windows XP in the browser, but with a File System and comes with it, Programs.
|
||||
|
||||
_Microsoft and Windows XP trademarks & logos definitely belong to Microsoft Corporation. All the programs' names and logos (Foxit, Word, WinRar, Internet Explorer, etc.) are of their rightful copyright holders._ _**win32.run**_ _is purely for the purpose of nostalgia. I have no intent and no right to monetize_ _**win32.run**__, but you may occasionally see ads when playing third-party games._
|
||||
|
||||
win32.run runs purely on the client-side (the user's browser). All files are processed right in the user's browser. There is no file uploading, no server-side processing (cause I'm broke, can't afford it). Each user has his own OS session (just like the good old Windows XP)
|
||||
|
||||
Files (and Folders) in win32.run are stored locally in IndexedDB. Apps (and 3rd-party apps) can interact with files through win32.run homemade file picker and saver dialog (with Windows XP appearance).
|
||||
|
||||

|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
} else if(type == 'RecycleBin'){
|
||||
menu_obj = (await import('./context_menu/RecycleBin')).make({type, originator});
|
||||
|
||||
|
||||
} else {
|
||||
console.log('unknown context menu type')
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
page_index = Math.min(history.length - 1, page_index + 1);
|
||||
}
|
||||
|
||||
function up(){
|
||||
export function up(){
|
||||
let parent_id = $hardDrive[history[page_index]].parent;
|
||||
open(parent_id);
|
||||
}
|
||||
|
||||
@@ -172,11 +172,11 @@
|
||||
}
|
||||
|
||||
function on_keydown(e){
|
||||
console.log('keyevent in my computer');
|
||||
|
||||
if(my_computer_instance.window.z_index != $zIndex) return;
|
||||
if(renaming) return;
|
||||
if(id == null) return;
|
||||
console.log('not skip');
|
||||
console.log('keyevent in my computer');
|
||||
|
||||
if(!(e.ctrlKey || e.metaKey)) return;
|
||||
if(e.key == 'c'){
|
||||
@@ -188,6 +188,10 @@
|
||||
} else if(e.key == 'a'){
|
||||
let els = node_ref.querySelectorAll('.fs-item');
|
||||
ds.setSelection(els, true);
|
||||
} else if(e.key == 'ArrowUp'){
|
||||
e.preventDefault();
|
||||
my_computer_instance.up();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user