This repository was archived by the owner on Oct 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -230,8 +230,8 @@ class Keyboard {
230
230
// See #440
231
231
if ( e . code === "ShiftLeft" || e . code === "ShiftRight" ) this . container . dataset . isShiftOn = true ;
232
232
if ( e . code === "AltLeft" || e . code === "AltRight" ) this . container . dataset . isAltOn = true ;
233
- if ( e . code === "CapsLock" && ! this . container . dataset . isCapsLckOn ) this . container . dataset . isCapsLckOn = true ;
234
- if ( e . code === "CapsLock" && this . container . dataset . isCapsLckOn ) this . container . dataset . isCapsLckOn = false ;
233
+ if ( e . code === "CapsLock" && ! this . container . dataset . isCapsLckOn === "true" ) this . container . dataset . isCapsLckOn = true ;
234
+ if ( e . code === "CapsLock" && this . container . dataset . isCapsLckOn === "true" ) this . container . dataset . isCapsLckOn = false ;
235
235
236
236
let key = findKey ( e ) ;
237
237
if ( key === null ) return ;
@@ -282,7 +282,7 @@ class Keyboard {
282
282
let cmd = key . dataset . cmd || "" ;
283
283
284
284
// Keyboard shortcuts
285
- if ( this . container . dataset . isCtrlOn && this . container . dataset . isShiftOn ) {
285
+ if ( this . container . dataset . isCtrlOn === "true" && this . container . dataset . isShiftOn === "true" ) {
286
286
switch ( cmd ) {
287
287
case "c" :
288
288
window . term [ window . currentTerm ] . clipboard . copy ( ) ;
@@ -317,7 +317,7 @@ class Keyboard {
317
317
return true ;
318
318
}
319
319
}
320
- if ( this . container . dataset . isCtrlOn ) {
320
+ if ( this . container . dataset . isCtrlOn === "true" ) {
321
321
switch ( cmd ) {
322
322
case "1" :
323
323
window . focusShellTab ( 0 ) ;
You can’t perform that action at this time.
0 commit comments