mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 15:13:36 +00:00
Fix keyup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
2
butterfly/static/main.min.js
vendored
2
butterfly/static/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user