View | Details | Raw Unified | Return to bug 56458
Collapse All | Expand All

(-)a/js/ui/status/keyboard.js (-7 lines)
Lines 380-386 export class InputSourceManager extends Signals.EventEmitter { Link Here
380
        this._ibusManager.connect('set-content-type', this._ibusSetContentType.bind(this));
380
        this._ibusManager.connect('set-content-type', this._ibusSetContentType.bind(this));
381
        global.display.connect('modifiers-accelerator-activated', this._modifiersSwitcher.bind(this));
381
        global.display.connect('modifiers-accelerator-activated', this._modifiersSwitcher.bind(this));
382
        global.backend.connect('keymap-layout-group-changed', this._layoutGroupChanged.bind(this));
383
       this._sourcesPerWindow = false;
382
       this._sourcesPerWindow = false;
384
       this._focusWindowNotifyId = 0;
383
       this._focusWindowNotifyId = 0;
Lines 429-440 export class InputSourceManager extends Signals.EventEmitter { Link Here
429
        return true;
428
        return true;
430
    }
429
    }
431
    _layoutGroupChanged(backend, idx) {
432
        const is = this._inputSources[idx];
433
        this._currentInputSourceChanged(is);
434
        this._keyboardManager.apply(is.xkbId);
435
    }
436
437
    _switchInputSource(display, window, event, binding) {
430
    _switchInputSource(display, window, event, binding) {
438
        if (this._mruSources.length < 2)
431
        if (this._mruSources.length < 2)
439
            return;
432
            return;

Return to bug 56458