| 2334 | input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true })); | 2334 | input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true })); |
| 2335 | | 2335 | |
| 2336 | select2ChoiceClickSubscribe(input, target => { | 2336 | select2ChoiceClickSubscribe(input, target => { |
| 2337 | const key = $(target.closest('.regex-highlight')).text(); | 2337 | const key = $(target.closest('.regex-highlight, .item')).text(); |
| 2338 | console.debug('Editing WI key', key); | 2338 | console.debug('Editing WI key', key); |
| 2339 | | 2339 | |
| 2340 | // Remove the current key from the actual selection | 2340 | // Remove the current key from the actual selection |