Skip to content

Commit

Permalink
remove unneeded virtual_input
Browse files Browse the repository at this point in the history
We have already introduced a virtual textarea for every platform.
This one seems redundant.

However, some features may still not work perfectly on a mobile browser
  • Loading branch information
PeterCxy committed Jun 3, 2018
1 parent 5bbe456 commit 4d87059
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 161 deletions.
88 changes: 10 additions & 78 deletions butterfly/static/ext.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion butterfly/static/ext.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions butterfly/static/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions butterfly/static/main.min.js

Large diffs are not rendered by default.

80 changes: 0 additions & 80 deletions coffees/ext/virtual_input.coffee

This file was deleted.

2 changes: 2 additions & 0 deletions coffees/term.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ class Terminal
# Don't do this on mobile, it will mess up the IME
unless isMobile()
addEventListener 'keyup', => @inputHelper.focus()
else
addEventListener 'click', => @inputHelper.focus()
addEventListener 'focus', @focus.bind(@)
addEventListener 'blur', @blur.bind(@)
addEventListener 'resize', => @resize()
Expand Down

0 comments on commit 4d87059

Please sign in to comment.