diff --git a/ts/components/session/SessionSearchInput.tsx b/ts/components/session/SessionSearchInput.tsx index 769092536..ddbc71a53 100644 --- a/ts/components/session/SessionSearchInput.tsx +++ b/ts/components/session/SessionSearchInput.tsx @@ -13,12 +13,6 @@ export class SessionSearchInput extends React.Component { public constructor(props: Props) { super(props); this.handleKeyDown = this.handleKeyDown.bind(this); - this.handleUndo = this.handleUndo.bind(this); - this.handleRedo = this.handleRedo.bind(this); - this.handleCut = this.handleCut.bind(this); - this.handleCopy = this.handleCopy.bind(this); - this.handlePast = this.handlePast.bind(this); - this.handleSelectAll = this.handleSelectAll.bind(this); } public render() { @@ -42,23 +36,23 @@ export class SessionSearchInput extends React.Component { - + document.execCommand('undo')}> {window.i18n('editMenuUndo')} - + document.execCommand('redo')}> {window.i18n('editMenuRedo')}
- + document.execCommand('cut')}> {window.i18n('editMenuCut')} - + document.execCommand('copy')}> {window.i18n('editMenuCopy')} - + document.execCommand('paste')}> {window.i18n('editMenuPaste')} - + document.execCommand('selectAll')}> {window.i18n('editMenuSelectAll')}
@@ -75,28 +69,4 @@ export class SessionSearchInput extends React.Component { } } } - - public handleUndo() { - document.execCommand('undo'); - } - - public handleRedo() { - document.execCommand('redo'); - } - - public handleCut() { - document.execCommand('cut'); - } - - public handleCopy() { - document.execCommand('copy'); - } - - public handlePast() { - document.execCommand('paste'); - } - - public handleSelectAll() { - document.execCommand('selectAll'); - } }