/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-terminal/src/components/inputProcessingSettings.component.ts
40 строк
1 KB
Eugene Pankov
fixed #5862 - configurable Backspace behaviour
15 июл 2023, 13:17
Не верифицирован
15 июл 2023, 13:17
fcac52a
Код
Авторство
О чём код?
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker' import { Component, Input } from '@angular/core' import { InputProcessingOptions } from '../middleware/inputProcessing' /** @hidden */ @Component({ selector: 'input-processing-settings', templateUrl: './inputProcessingSettings.component.pug', }) export class InputProcessingSettingsComponent { @Input() options: InputProcessingOptions backspaceModes = [ { key: 'backspace', name: _('Pass-through'), }, { key: 'ctrl-h', name: 'Ctrl-H', }, { key: 'ctrl-?', name: 'Ctrl-?', }, { key: 'delete', name: 'Delete (CSI 3~)', }, ] getBackspaceModeName (key) { return this.backspaceModes.find(x => x.key === key)?.name } setBackspaceMode (mode) { this.options.backspace = mode } }