MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / key

Method key

renderer/renderJS/main_ui_lib.js:2439–2458  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

2437
2438 // MARK: keyboard interaction
2439 key(type) {
2440 if ( this.selectedDest.size === 0 ) { return }
2441 if ( this.flags.operation === 'delete' ) { return }
2442 if ( this.lastPayload.multiDestination ) { return }
2443
2444 for ( const data of Object.values(this.selectedMods) ) {
2445 switch (type) {
2446 case 'all' :
2447 data.doAction = true
2448 break
2449 case 'invert' :
2450 data.doAction = !data.doAction
2451 break
2452 default :
2453 data.doAction = false
2454 break
2455 }
2456 }
2457 this.updateMods()
2458 }
2459
2460 key_all() { this.key('all') }
2461 key_invert() { this.key('invert') }

Callers 3

key_allMethod · 0.95
key_invertMethod · 0.95
key_noneMethod · 0.95

Calls 1

updateModsMethod · 0.95

Tested by

no test coverage detected