chore: fix bugs & qol
This commit is contained in:
@@ -140,6 +140,14 @@ export class InputManager {
|
||||
HandleKeyInput(key: string, isCharacter: boolean) {
|
||||
// handle special input
|
||||
switch (key.toUpperCase()) {
|
||||
case 'C':
|
||||
if (InputManager.HasModifierCombo(this.modifierKeys, ['ctrl'])) {
|
||||
document.execCommand('copy')
|
||||
return
|
||||
}
|
||||
|
||||
break
|
||||
|
||||
case 'R':
|
||||
if (InputManager.HasModifierCombo(this.modifierKeys, ['ctrl'])) {
|
||||
location.reload()
|
||||
@@ -149,8 +157,12 @@ export class InputManager {
|
||||
break
|
||||
|
||||
case 'F5':
|
||||
location.reload()
|
||||
return
|
||||
if (InputManager.HasModifierCombo(this.modifierKeys, ['alt'])) {
|
||||
location.reload()
|
||||
return
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
// redirect input to a running program instead
|
||||
|
||||
@@ -902,6 +902,10 @@ export class Wush extends Shell {
|
||||
this.terminal.NewPage()
|
||||
return true
|
||||
}
|
||||
case 'm': {
|
||||
this.terminal.ApplyCellStyleCodes(values)
|
||||
return true
|
||||
}
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user