File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Top Open diff view settings Original file line number Diff line number Diff line change 11define ( [ './web-tools.xml' ] , function ( toolsTemplate ) {
22
3- function insertTab ( e ) {
4- if ( e . key == 'Tab' ) {
5- e . preventDefault ( ) ;
6- var start = this . selectionStart ;
7- var end = this . selectionEnd ;
8- this . value = this . value . substring ( 0 , start ) + '\t' + this . value . substring ( end ) ;
9- this . selectionStart = this . selectionEnd = start + 1 ;
10- }
11- }
12-
133 var toolsVue = new Vue ( {
144 template : toolsTemplate ,
155 data : {
@@ -20,9 +10,6 @@ define(['./web-tools.xml'], function(toolsTemplate) {
2010 cmd : '' ,
2111 cmdOut : ''
2212 } ,
23- mounted : function ( ) {
24- this . $refs . lua . addEventListener ( 'keydown' , insertTab ) ;
25- } ,
2613 methods : {
2714 onShow : function ( ) {
2815 var page = this ;
You can’t perform that action at this time.
0 commit comments