Fix keyup

This commit is contained in:
Florian Mounier
2016-08-08 11:19:54 +02:00
parent ac7e9bef8e
commit fe01ffb2b4
4 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '2.0.2'
__version__ = '2.0.3'
import os

View File

@@ -1370,7 +1370,7 @@
Terminal.prototype.keyUp = function(ev) {
if (ev.keyCode === 19) {
if (!this.stop) {
if (this.stop == null) {
return;
}
this.body.classList.remove('stopped');
@@ -1385,7 +1385,7 @@
return true;
}
if (ev.keyCode === 19) {
if (this.stop) {
if (this.stop != null) {
return;
}
this.body.classList.add('stopped');

File diff suppressed because one or more lines are too long

View File

@@ -1260,7 +1260,7 @@ class Terminal
keyUp: (ev) ->
if ev.keyCode is 19 # Pause break
return unless @stop
return unless @stop?
@body.classList.remove 'stopped'
@stop = null
@out '\x03\n'
@@ -1272,7 +1272,7 @@ class Terminal
return true if ev.keyCode > 15 and ev.keyCode < 19
if ev.keyCode is 19 # Pause break
return if @stop
return if @stop?
@body.classList.add 'stopped'
@stop = 0
@out '\x03'