mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-06 19:18:22 +01:00
addressed review comments
This commit is contained in:
parent
5c9a8201b5
commit
54295ff54d
@ -56,7 +56,7 @@
|
|||||||
{
|
{
|
||||||
"command": "app:focusCmdInput",
|
"command": "app:focusCmdInput",
|
||||||
"keys": ["Cmd:i"],
|
"keys": ["Cmd:i"],
|
||||||
"commandStr":"/mainview session,/screen:set focus=cmd,/screen:set focus=input"
|
"commandStr":"/mainview session;/screen:set focus=cmd;/screen:set focus=input"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "app:focusSelectedLine",
|
"command": "app:focusSelectedLine",
|
||||||
|
@ -119,7 +119,7 @@ class KeybindManager {
|
|||||||
if (curConfigKeybind == null || curConfigKeybind.commandStr == null || curKeybind.commandStr == "") {
|
if (curConfigKeybind == null || curConfigKeybind.commandStr == null || curKeybind.commandStr == "") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
let commandsList = curConfigKeybind.commandStr.trim().split(",");
|
let commandsList = curConfigKeybind.commandStr.trim().split(";");
|
||||||
this.runIndividualSlashCommand(commandsList);
|
this.runIndividualSlashCommand(commandsList);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -3572,7 +3572,7 @@ func SleepCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (scbus.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("couldn't parse sleep arg: %v", err)
|
return nil, fmt.Errorf("couldn't parse sleep arg: %v", err)
|
||||||
}
|
}
|
||||||
if sleepArgInt > 1000 {
|
if sleepArgInt > 10000 {
|
||||||
return nil, fmt.Errorf("sleep arg is too long, max value is 1000")
|
return nil, fmt.Errorf("sleep arg is too long, max value is 1000")
|
||||||
}
|
}
|
||||||
time.Sleep(time.Duration(sleepArgInt) * time.Millisecond)
|
time.Sleep(time.Duration(sleepArgInt) * time.Millisecond)
|
||||||
|
Loading…
Reference in New Issue
Block a user