handsontable 0.0.0-next-325e402-20240319 → 0.0.0-next-4cc87d6-20240319

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

@@ -194,31 +194,32 @@ class SelectEditor extends _baseEditor.BaseEditor {
194
194
  group: SHORTCUTS_GROUP
195
195
  };
196
196
 
197
- // Actions from fast edit works.
198
- if (this.isInFullEditMode() === false) {
199
- return;
200
- }
197
+ // The `TAB`-related shortcuts should work both in full and fast edit modes.
201
198
  editorContext.addShortcuts([{
202
199
  keys: [['Tab'], ['Shift', 'Tab']],
203
200
  forwardToContext: gridContext,
204
201
  callback: () => {}
205
- }, {
206
- keys: [['ArrowUp']],
207
- callback: () => {
208
- const previousOptionIndex = this.select.selectedIndex - 1;
209
- if (previousOptionIndex >= 0) {
210
- this.select[previousOptionIndex].selected = true;
202
+ }], contextConfig);
203
+ if (this.isInFullEditMode() === true) {
204
+ // The arrow-related shortcuts should work only in full edit mode.
205
+ editorContext.addShortcuts([{
206
+ keys: [['ArrowUp']],
207
+ callback: () => {
208
+ const previousOptionIndex = this.select.selectedIndex - 1;
209
+ if (previousOptionIndex >= 0) {
210
+ this.select[previousOptionIndex].selected = true;
211
+ }
211
212
  }
212
- }
213
- }, {
214
- keys: [['ArrowDown']],
215
- callback: () => {
216
- const nextOptionIndex = this.select.selectedIndex + 1;
217
- if (nextOptionIndex <= this.select.length - 1) {
218
- this.select[nextOptionIndex].selected = true;
213
+ }, {
214
+ keys: [['ArrowDown']],
215
+ callback: () => {
216
+ const nextOptionIndex = this.select.selectedIndex + 1;
217
+ if (nextOptionIndex <= this.select.length - 1) {
218
+ this.select[nextOptionIndex].selected = true;
219
+ }
219
220
  }
220
- }
221
- }], contextConfig);
221
+ }], contextConfig);
222
+ }
222
223
  }
223
224
 
224
225
  /**
@@ -191,31 +191,32 @@ export class SelectEditor extends BaseEditor {
191
191
  group: SHORTCUTS_GROUP
192
192
  };
193
193
 
194
- // Actions from fast edit works.
195
- if (this.isInFullEditMode() === false) {
196
- return;
197
- }
194
+ // The `TAB`-related shortcuts should work both in full and fast edit modes.
198
195
  editorContext.addShortcuts([{
199
196
  keys: [['Tab'], ['Shift', 'Tab']],
200
197
  forwardToContext: gridContext,
201
198
  callback: () => {}
202
- }, {
203
- keys: [['ArrowUp']],
204
- callback: () => {
205
- const previousOptionIndex = this.select.selectedIndex - 1;
206
- if (previousOptionIndex >= 0) {
207
- this.select[previousOptionIndex].selected = true;
199
+ }], contextConfig);
200
+ if (this.isInFullEditMode() === true) {
201
+ // The arrow-related shortcuts should work only in full edit mode.
202
+ editorContext.addShortcuts([{
203
+ keys: [['ArrowUp']],
204
+ callback: () => {
205
+ const previousOptionIndex = this.select.selectedIndex - 1;
206
+ if (previousOptionIndex >= 0) {
207
+ this.select[previousOptionIndex].selected = true;
208
+ }
208
209
  }
209
- }
210
- }, {
211
- keys: [['ArrowDown']],
212
- callback: () => {
213
- const nextOptionIndex = this.select.selectedIndex + 1;
214
- if (nextOptionIndex <= this.select.length - 1) {
215
- this.select[nextOptionIndex].selected = true;
210
+ }, {
211
+ keys: [['ArrowDown']],
212
+ callback: () => {
213
+ const nextOptionIndex = this.select.selectedIndex + 1;
214
+ if (nextOptionIndex <= this.select.length - 1) {
215
+ this.select[nextOptionIndex].selected = true;
216
+ }
216
217
  }
217
- }
218
- }], contextConfig);
218
+ }], contextConfig);
219
+ }
219
220
  }
220
221
 
221
222
  /**
package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "0.0.0-next-325e402-20240319";
137
+ const hotVersion = "0.0.0-next-4cc87d6-20240319";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "0.0.0-next-325e402-20240319";
127
+ const hotVersion = "0.0.0-next-4cc87d6-20240319";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-325e402-20240319",
13
+ "version": "0.0.0-next-4cc87d6-20240319",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",