Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Oct 30, 2017
1 parent 58d5d1a commit 60bc9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ui/src/components/xterm/XTerm.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class XTerm extends React.Component {
this.xterm.write(this.props.value)
}
if (this.props.copyOnCtrlC || this.props.pasteOnCtrlV) {
this.xterm.attachCustomKeydownHandler(function (ev) {
this.xterm.attachCustomKeyEventHandler(function (ev) {
if (ev.ctrlKey && ev.keyCode === 67) {
return !this.props.copyOnCtrlC
} else if (ev.ctrlKey && ev.keyCode === 86) {
Expand Down

0 comments on commit 60bc9c0

Please sign in to comment.