tabminal 3.0.32 → 3.0.33

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/app.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabminal",
3
- "version": "3.0.32",
3
+ "version": "3.0.33",
4
4
  "description": "Tab(ter)minal, a Cloud-Native terminal and ACP agent workspace for desktop, tablet, and phone.",
5
5
  "type": "module",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -9800,7 +9800,15 @@ class Session {
9800
9800
 
9801
9801
  const textarea = this.mainTerm.textarea
9802
9802
  || root.querySelector('textarea');
9803
- const handler = () => this.claimTerminalControl();
9803
+ const handler = (event) => {
9804
+ this.claimTerminalControl();
9805
+ if (
9806
+ event?.type === 'touchstart'
9807
+ && this.isMainTerminalVisible()
9808
+ ) {
9809
+ this.mainTerm.focus();
9810
+ }
9811
+ };
9804
9812
 
9805
9813
  root.addEventListener('mousedown', handler, true);
9806
9814
  root.addEventListener('touchstart', handler, true);