~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/codepress/engines/gecko.js

  • Committer: wagrant
  • Date: 2008-07-17 01:19:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:900
CodePress (Gecko engine): Disable snippets, as we now use the tab key
      to insert four spaces. Note that one cannot yet indent an entire
      line by selecting it.

      /me celebrates r900!

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
            else if(chars.indexOf('|'+charCode+'|')!=-1||keyCode==13) { // syntax highlighting
60
60
                        top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100);
61
61
                }
62
 
                else if(keyCode==9 || evt.tabKey) {  // snippets activation (tab)
63
 
                        CodePress.snippets(evt);
 
62
                else if(keyCode==9 || evt.tabKey) {  // Tabbing! Was snippets, but they're bad.
 
63
                        // TODO: Allow line indentation
 
64
                        evt.preventDefault();
 
65
                        CodePress.insertCode('    ');
64
66
                }
65
67
                else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed
66
68
                        CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML;