@zhenliang/sheet 0.1.77 → 0.1.79

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.
@@ -52,11 +52,25 @@ export var useKeyBoard = function useKeyBoard(handler, listenElement) {
52
52
  handler.escape(e);
53
53
  return;
54
54
  }
55
+ var isEnter = keyCode === ENTER_KEY;
56
+ if (isEnter && !shiftKey) {
57
+ handler.enter(e);
58
+ return;
59
+ }
55
60
  var isSearch = ctrlKeyPressed && keyCode === F_KEY;
56
61
  if (isSearch) {
57
62
  handler.search(e);
58
63
  return;
59
64
  }
65
+ var isTab = !ctrlKeyPressed && keyCode === TAB_KEY;
66
+ if (isTab) {
67
+ var _moveInfo = move(keyCode, shiftKey);
68
+ _moveInfo && handler.move(e, _moveInfo);
69
+ return;
70
+ }
71
+ if (e.target !== listenElement) {
72
+ return;
73
+ }
60
74
  var isReverse = ctrlKeyPressed && keyCode === Z_KEY && !shiftKey;
61
75
  if (isReverse) {
62
76
  handler.reverse(e);
@@ -91,11 +105,6 @@ export var useKeyBoard = function useKeyBoard(handler, listenElement) {
91
105
  handler.delete(e);
92
106
  return;
93
107
  }
94
- var isEnter = keyCode === ENTER_KEY;
95
- if (isEnter && !shiftKey) {
96
- handler.enter(e);
97
- return;
98
- }
99
108
  if (ctrlKeyPressed) {
100
109
  return;
101
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhenliang/sheet",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",