* @returns true if there was a remap being executed to stop
(mh: ModeHandler)
| 597 | * @returns true if there was a remap being executed to stop |
| 598 | */ |
| 599 | async function forceStopRecursiveRemap(mh: ModeHandler): Promise<boolean> { |
| 600 | if (mh.remapState.isCurrentlyPerformingRecursiveRemapping) { |
| 601 | mh.remapState.forceStopRecursiveRemapping = true; |
| 602 | return true; |
| 603 | } |
| 604 | |
| 605 | return false; |
| 606 | } |