| 78 | } |
| 79 | |
| 80 | onHidden () { |
| 81 | this.aceConfig.keyBindings = 'default' // We used to give them the option, but we took it away. |
| 82 | this.aceConfig.behaviors = this.$el.find('#option-behaviors').prop('checked') |
| 83 | if (this.options?.classroomAceConfig?.liveCompletion === false) { |
| 84 | // do not update liveCompletion when classroom disable the liveCompletion |
| 85 | this.aceConfig.liveCompletion = this.$el.find('#option-live-completion').prop('checked') |
| 86 | } |
| 87 | me.set('aceConfig', this.aceConfig) |
| 88 | me.patch() |
| 89 | return Backbone.Mediator.publish('tome:change-config', {}) |
| 90 | } |
| 91 | |
| 92 | updateMusic () { |
| 93 | return me.set('music', this.$el.find('#option-music').prop('checked')) |