Restore shift + arrow keys. Fixes #8

This commit is contained in:
Florian Mounier
2014-03-03 13:01:23 +01:00
parent 1b25dce8be
commit 8b66e95006
3 changed files with 6 additions and 9 deletions

View File

@@ -197,6 +197,7 @@ document.addEventListener 'keydown', (e) ->
selection.select_line term.y - 1
selection.apply()
return cancel e
true
document.addEventListener 'keyup', (e) ->
return true if e.keyCode in [16..19]
@@ -211,6 +212,7 @@ document.addEventListener 'keyup', (e) ->
selection.destroy()
selection = null
return true
true
document.addEventListener 'dblclick', (e) ->
return if e.ctrlKey or e.altkey

View File

@@ -1144,7 +1144,6 @@ class Terminal
key = "\x1bOD" # SS3 as ^[O for 7-bit
#key = '\x8fD'; // SS3 as 0x8f for 8-bit
break
return true if ev.shiftKey
key = "\x1b[D"
# right-arrow
@@ -1152,7 +1151,6 @@ class Terminal
if @applicationCursor
key = "\x1bOC"
break
return true if ev.shiftKey
key = "\x1b[C"
# up-arrow
@@ -1163,8 +1161,6 @@ class Terminal
if ev.ctrlKey
@scrollDisp -1
return cancel(ev)
else if ev.shiftKey
return true
else
key = "\x1b[A"
@@ -1176,8 +1172,6 @@ class Terminal
if ev.ctrlKey
@scrollDisp 1
return cancel(ev)
else if ev.shiftKey
return true
else
key = "\x1b[B"
@@ -1313,7 +1307,8 @@ class Terminal
key = key.slice(0, -1) + "1;5" + key.slice(-1)
else if ev.altKey
key = key.slice(0, -1) + "1;3" + key.slice(-1)
else key = key.slice(0, -1) + "1;4" + key.slice(-1) if ev.shiftKey
else if ev.shiftKey
key = key.slice(0, -1) + "1;4" + key.slice(-1)
return true unless key

File diff suppressed because one or more lines are too long