Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9c7451f

Browse files
committedJan 18, 2025
Cleanup
1 parent 04f85aa commit 9c7451f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
 

‎extensions/web-tools/web-tools.js‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
define(['./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;

0 commit comments

Comments
 (0)
Please sign in to comment.