sunrize 1.11.14 → 1.11.15
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.
- package/package.json +1 -1
- package/src/Application/Document.js +24 -0
package/package.json
CHANGED
|
@@ -67,6 +67,8 @@ module .exports = class Document extends Interface
|
|
|
67
67
|
.on ("focusin", () => this .onfocus ())
|
|
68
68
|
.on ("focusout", () => this .onfocus ());
|
|
69
69
|
|
|
70
|
+
$(window) .on ("keydown", event => this .onkeydown (event));
|
|
71
|
+
|
|
70
72
|
// File Menu
|
|
71
73
|
|
|
72
74
|
electron .ipcRenderer .on ("open-files", (event, urls) => this .loadURL (urls [0])); // DEBUG
|
|
@@ -353,6 +355,28 @@ module .exports = class Document extends Interface
|
|
|
353
355
|
return true;
|
|
354
356
|
}
|
|
355
357
|
|
|
358
|
+
// Menu Accelerators Fix for Windows.
|
|
359
|
+
|
|
360
|
+
onkeydown (event)
|
|
361
|
+
{
|
|
362
|
+
switch (event .key)
|
|
363
|
+
{
|
|
364
|
+
case "a":
|
|
365
|
+
{
|
|
366
|
+
if (this .activeElementIsInputOrOutput ())
|
|
367
|
+
break;
|
|
368
|
+
|
|
369
|
+
if (event .ctrlKey)
|
|
370
|
+
{
|
|
371
|
+
this .sidebar .outlineEditor .selectAll ();
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
356
380
|
/*
|
|
357
381
|
* File Menu
|
|
358
382
|
*/
|