Skip to content

Commit e0c4214

Browse files
committed
v6.7.8
1 parent bb496c0 commit e0c4214

File tree

8 files changed

+24
-10
lines changed

8 files changed

+24
-10
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "6.7.7",
3+
"version": "6.7.8",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/6.7.8/appwidget.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/6.7.8/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/6.7.8/index.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MarkerManager.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default class MarkerManager {
172172
<div class="bb-capture-editor-borderlayer"></div>
173173
<svg class="bb-capture-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xml:space="preserve"></svg>
174174
<div class="bb-capture-dismiss">${loadIcon("dismiss")}</div>
175-
<div class='bb-capture-editor-drag-info'>${loadIcon("pen")}</div>
175+
<div class='bb-capture-editor-drag-info'>${loadIcon("rect")}</div>
176176
<div class="bb-capture-toolbar">
177177
${
178178
this.type === "capture"
@@ -192,12 +192,12 @@ export default class MarkerManager {
192192
</div>`
193193
: ""
194194
}
195-
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool bb-capture-toolbar-item--active" data-type="pen">
196-
${loadIcon("pen")}
197-
</div>
198-
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="rect">
195+
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool bb-capture-toolbar-item--active" data-type="rect">
199196
${loadIcon("rect")}
200197
</div>
198+
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="pen">
199+
${loadIcon("pen")}
200+
</div>
201201
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="blur">
202202
${loadIcon("blur")}
203203
</div>
@@ -281,14 +281,20 @@ export default class MarkerManager {
281281
this.escListener = function (evt) {
282282
evt = evt || window.event;
283283
var isEscape = false;
284+
var isEnter = false;
284285
if ("key" in evt) {
285286
isEscape = evt.key === "Escape" || evt.key === "Esc";
287+
isEnter = evt.key === "Enter";
286288
} else {
287289
isEscape = evt.keyCode === 27;
290+
isEnter = evt.keyCode === 13;
288291
}
289292
if (isEscape) {
290293
self.dismiss();
291294
}
295+
if (self.type === "screenshot" && isEnter) {
296+
self.showNextStep();
297+
}
292298
};
293299
document.addEventListener("keydown", this.escListener);
294300

@@ -441,7 +447,12 @@ export default class MarkerManager {
441447
// Inactivate buttons.
442448
return;
443449
}
444-
if (type === "pen" || type === "blur" || type === "rect" || type === "pointer") {
450+
if (
451+
type === "pen" ||
452+
type === "blur" ||
453+
type === "rect" ||
454+
type === "pointer"
455+
) {
445456
const toolbarTools = document.querySelectorAll(
446457
".bb-capture-toolbar-item-tool"
447458
);

src/ScreenDrawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class ScreenDrawer {
88
bufferSize = 4;
99
buffer = [];
1010
startPoint = null;
11-
tool = "pen";
11+
tool = "rect";
1212
color = "#EB144C";
1313
mouseDown = null;
1414
mouseMove = null;

0 commit comments

Comments
 (0)