goodteditor-ui 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -234,23 +234,12 @@ export default {
|
|
|
234
234
|
}
|
|
235
235
|
this.tagSelected = tagSelected;
|
|
236
236
|
},
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
* @param {KeyboardEvent} e
|
|
240
|
-
* @return {boolean}
|
|
241
|
-
*/
|
|
242
|
-
canSelectTag(e) {
|
|
243
|
-
return e.target.value === '' && ['Backspace', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].indexOf(e.code)
|
|
244
|
-
},
|
|
245
237
|
/**
|
|
246
238
|
*
|
|
247
239
|
* @param {KeyboardEvent} e
|
|
248
240
|
*/
|
|
249
241
|
onInputKeydown(e) {
|
|
250
242
|
switch (e.key) {
|
|
251
|
-
case ',':
|
|
252
|
-
case ';':
|
|
253
|
-
case 'Tab':
|
|
254
243
|
case 'Enter': {
|
|
255
244
|
this.onInputEnter(e);
|
|
256
245
|
return;
|
|
@@ -261,7 +250,8 @@ export default {
|
|
|
261
250
|
}
|
|
262
251
|
}
|
|
263
252
|
|
|
264
|
-
if
|
|
253
|
+
// if some text in input exist
|
|
254
|
+
if (e.target.value !== '') {
|
|
265
255
|
return;
|
|
266
256
|
}
|
|
267
257
|
|