Fossil SCM

Revert a /chat change, introduced in [be01315c86cd2f7d], which causes the Send button to trigger a preview update if the current view is the preview. In practice that's annoying, as the shift-enter and the preview button do the same thing and this change forces a separate click to leave preview mode.

stephan 2024-07-23 12:27 trunk
Commit ec6fbe98635fa96d6cc6999a6b2290b15d73caefc4a5a60cffcb42858234dc42
1 file changed -2
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1638,12 +1638,10 @@
16381638
f.spaces2 = /\s{3,}$/;
16391639
}
16401640
switch( this.e.currentView ){
16411641
case this.e.viewSearch: this.submitSearch();
16421642
return;
1643
- case this.e.viewPreview: this.e.btnPreview.click();
1644
- return;
16451643
default: break;
16461644
}
16471645
this.setCurrentView(this.e.viewMessages);
16481646
const fd = new FormData();
16491647
const fallback = {msg: this.inputValue()};
16501648
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1638,12 +1638,10 @@
1638 f.spaces2 = /\s{3,}$/;
1639 }
1640 switch( this.e.currentView ){
1641 case this.e.viewSearch: this.submitSearch();
1642 return;
1643 case this.e.viewPreview: this.e.btnPreview.click();
1644 return;
1645 default: break;
1646 }
1647 this.setCurrentView(this.e.viewMessages);
1648 const fd = new FormData();
1649 const fallback = {msg: this.inputValue()};
1650
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1638,12 +1638,10 @@
1638 f.spaces2 = /\s{3,}$/;
1639 }
1640 switch( this.e.currentView ){
1641 case this.e.viewSearch: this.submitSearch();
1642 return;
 
 
1643 default: break;
1644 }
1645 this.setCurrentView(this.e.viewMessages);
1646 const fd = new FormData();
1647 const fallback = {msg: this.inputValue()};
1648

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button