This reverts commit e9fa164. Alternative keycodes are no longer needed for iOS because they fixed backspace to give 8 and return to give 13 sometime between iOS 3.1 and iOS 4.1.
…s a welcomeMessage.
…he first line would never reset properly.
o C-c is hard coded for now, may want to refactor it later o Also added my name to and cleaned up the license
o deleteUntilEnd will now correctly delete if the cursor is in the middle of the line o moveToPreviousWord now works correctly for single-letter words o isCharAlphanumeric now gracefully handles non-string input
o C-a -> move cursor to beginning of line o C-e -> move cursor to end of line o C-d -> delete character at cursor o C-n -> next history item o C-p -> previous history item o C-b -> move the cursor backward one character o C-f -> move the cursor forward one character o C-k -> delete from cursor position to end of line o M-f -> move forward one word o M-b -> move backward one word o M-d -> delete next word
o Tab is now a control character o now ignoring alt+tab
o Addresses issue#2: http://github.com/chrisdone/jquery-console/issues/2 o Also added a check to make sure ret is an object before looking for the length property. This fixes a bug in the demo.
This fixes the odd history behavior in issue#1: http://github.com/chrisdone/jquery-console/issues/1
o commandResult calls newPromptBox which sets promptText to the empty string o addToHistory uses the value of promptText to push into the history array o thus, whenever commandResult was called before addToHistory, an empty string would be placed on the history array Now, addToHistory is always called before commandResult so it pushes the command to the history array in all cases.