mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Fix #30
This commit is contained in:
@@ -1297,7 +1297,7 @@ class Terminal
|
||||
else
|
||||
key = String.fromCharCode(29) if ev.keyCode is 221
|
||||
|
||||
else if ev.altKey
|
||||
else if (ev.altKey and 'Mac' not in navigator.platform) or (ev.metaKey and 'Mac' in navigator.platform)
|
||||
if ev.keyCode >= 65 and ev.keyCode <= 90
|
||||
key = "\x1b" + String.fromCharCode(ev.keyCode + 32)
|
||||
else if ev.keyCode is 192
|
||||
|
||||
@@ -1193,7 +1193,7 @@ Terminal = (function() {
|
||||
key = String.fromCharCode(29);
|
||||
}
|
||||
}
|
||||
} else if (ev.altKey) {
|
||||
} else if ((ev.altKey && __indexOf.call(navigator.platform, 'Mac') < 0) || (ev.metaKey && __indexOf.call(navigator.platform, 'Mac') >= 0)) {
|
||||
if (ev.keyCode >= 65 && ev.keyCode <= 90) {
|
||||
key = "\x1b" + String.fromCharCode(ev.keyCode + 32);
|
||||
} else if (ev.keyCode === 192) {
|
||||
|
||||
Reference in New Issue
Block a user