@chat21/chat21-ionic 3.0.82 → 3.0.83
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# chat21-ionic ver 3.0
|
|
2
2
|
|
|
3
|
+
## 3.0.83 in PROD
|
|
4
|
+
- bug-fixed: canned item is not visible (missing scroll position) if ArrowDown keyboard button is pressed
|
|
5
|
+
- bug-fixed: if ArrowUp keyboard button is pressed, text-area cursor moved left and canned not substituted correctly
|
|
6
|
+
|
|
3
7
|
## 3.0.82 in PROD
|
|
4
8
|
- bug-fixed: do not disable textArea if is a direct archived conversation
|
|
5
9
|
- bug-fixed: canned item not fire click event on Firefox browser
|
package/package.json
CHANGED
|
@@ -286,6 +286,11 @@ export class CannedResponseComponent implements OnInit {
|
|
|
286
286
|
// this.replaceTagInMessage(this.tagsCannedFilter[this.arrowkeyLocation])
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
// set the focus on current canned
|
|
290
|
+
setTimeout(() => {
|
|
291
|
+
this.el.nativeElement.querySelector('.canned-list').scrollTop = this.arrowkeyLocation * 59 //59 is the height of the single element
|
|
292
|
+
}, 0);
|
|
293
|
+
|
|
289
294
|
if (event.key === 'Enter') {
|
|
290
295
|
const canned_selected = this.tagsCannedFilter[this.arrowkeyLocation]
|
|
291
296
|
this.logger.log('[CONVS-DETAIL] replaceTagInMessage canned_selected ',canned_selected)
|
package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts
CHANGED
|
@@ -699,6 +699,12 @@ export class MessageTextAreaComponent implements OnInit, AfterViewInit, OnChange
|
|
|
699
699
|
this.logger.log("[CONVS-DETAIL][MSG-TEXT-AREA] handleKeyboardEvent event.key ", event);
|
|
700
700
|
// Note: on mac keyboard "metakey" matches "cmd"
|
|
701
701
|
|
|
702
|
+
//do not move cursor on ArrowDown/ArrowUp
|
|
703
|
+
if ((event.key === 'ArrowDown' || event.key === 'ArrowUp') && !event.shiftKey) {
|
|
704
|
+
this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] HAS PRESSED event.key', event.key);
|
|
705
|
+
event.preventDefault();
|
|
706
|
+
}
|
|
707
|
+
|
|
702
708
|
if (event.key === 'Enter' && event.altKey || event.key === 'Enter' && event.ctrlKey || event.key === 'Enter' && event.metaKey) {
|
|
703
709
|
this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] HAS PRESSED COMBO KEYS this.messageString', this.messageString);
|
|
704
710
|
if (this.messageString !== undefined && this.messageString.trim() !== '') {
|