@lobehub/ui 1.169.0 → 1.169.1

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.
@@ -91,7 +91,7 @@ var mappingKey = function mappingKey(isAppleDevice) {
91
91
  icon: ArrowRightToLineIcon
92
92
  }) : 'Tab'), KeyMapEnum.Up, /*#__PURE__*/_jsx(Icon, {
93
93
  icon: ArrowUpIcon
94
- })), KeyMapEnum.Comma, ','), KeyMapEnum.Period, '.'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, KeyMapEnum.Slash, '/'), KeyMapEnum.Semicolon, ';'), KeyMapEnum.Quote, "'"), KeyMapEnum.Backquote, '`'), KeyMapEnum.Backslash, '\\'), KeyMapEnum.BracketLeft, '['), KeyMapEnum.BracketRight, ']'), KeyMapEnum.Minus, '-'), KeyMapEnum.Equal, '=');
94
+ })), KeyMapEnum.Comma, ','), KeyMapEnum.Period, '.'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, KeyMapEnum.Slash, '?'), KeyMapEnum.Semicolon, ';'), KeyMapEnum.Quote, "'"), KeyMapEnum.Backquote, '`'), KeyMapEnum.Backslash, '\\'), KeyMapEnum.BracketLeft, '['), KeyMapEnum.BracketRight, ']'), KeyMapEnum.Minus, '-'), KeyMapEnum.Equal, '+');
95
95
  };
96
96
  var Hotkey = /*#__PURE__*/memo(function (_ref2) {
97
97
  var _ref2$variant = _ref2.variant,
@@ -19,6 +19,8 @@ export declare const KeyMapEnum: {
19
19
  readonly Minus: "minus";
20
20
  readonly Mod: "mod";
21
21
  readonly Period: "period";
22
+ readonly Plus: "equal";
23
+ readonly QuestionMark: "slash";
22
24
  readonly Quote: "quote";
23
25
  readonly Right: "right";
24
26
  readonly RightClick: "right-click";
package/es/Hotkey/type.js CHANGED
@@ -29,6 +29,10 @@ export var KeyMapEnum = {
29
29
  // Command on Mac, Ctrl on Win
30
30
  Period: 'period',
31
31
  // .
32
+ Plus: 'equal',
33
+ // +
34
+ QuestionMark: 'slash',
35
+ // ?
32
36
  Quote: 'quote',
33
37
  // '
34
38
  Right: 'right',
@@ -263,7 +263,7 @@ var HotkeyInput = /*#__PURE__*/memo(function (_ref) {
263
263
  style: {
264
264
  pointerEvents: 'none'
265
265
  }
266
- }), allowReset && hotkeyValue && hotkeyValue !== resetValue && !disabled && /*#__PURE__*/_jsx(ActionIcon, {
266
+ }), !isFocused && allowReset && hotkeyValue && hotkeyValue !== resetValue && !disabled && /*#__PURE__*/_jsx(ActionIcon, {
267
267
  active: true,
268
268
  icon: Undo2Icon,
269
269
  onClick: handleReset,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.169.0",
3
+ "version": "1.169.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",