Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
112a65a0
Commit
112a65a0
authored
Jun 17, 2018
by
Evan W. Patton
Committed by
Jeffrey Schiller
Jun 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress closing backpack on right click (#1271)
Change-Id: Icef6b14f0248258189a764989778e0aba9ce4c05
parent
97102b94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
appinventor/blocklyeditor/src/backpack.js
appinventor/blocklyeditor/src/backpack.js
+1
-0
appinventor/blocklyeditor/src/blockly.js
appinventor/blocklyeditor/src/blockly.js
+3
-2
appinventor/blocklyeditor/src/workspace_svg.js
appinventor/blocklyeditor/src/workspace_svg.js
+4
-2
No files found.
appinventor/blocklyeditor/src/backpack.js
View file @
112a65a0
...
...
@@ -218,6 +218,7 @@ Blockly.Backpack.prototype.init = function() {
Blockly
.
bindEvent_
(
this
.
svgBody_
,
'
click
'
,
this
,
this
.
openBackpack
);
Blockly
.
bindEvent_
(
this
.
svgBody_
,
'
contextmenu
'
,
this
,
this
.
openBackpackDoc
);
this
.
flyout_
.
init
(
this
.
workspace_
);
this
.
flyout_
.
workspace_
.
isBackpack
=
true
;
// load files for sound effect
Blockly
.
getMainWorkspace
().
loadAudio_
([
'
assets/backpack.mp3
'
,
'
assets/backpack.ogg
'
,
'
assets/backpack.wav
'
],
'
backpack
'
);
...
...
appinventor/blocklyeditor/src/blockly.js
View file @
112a65a0
...
...
@@ -41,9 +41,10 @@ Blockly.hideChaff = (function(func) {
return
func
;
}
else
{
var
f
=
function
()
{
func
.
apply
(
this
,
Array
.
prototype
.
slice
.
call
(
arguments
));
var
argCopy
=
Array
.
prototype
.
slice
.
call
(
arguments
);
func
.
apply
(
this
,
argCopy
);
// [lyn, 10/06/13] for handling parameter & procedure flydowns
Blockly
.
getMainWorkspace
().
hideChaff
(
);
Blockly
.
WorkspaceSvg
.
prototype
.
hideChaff
.
call
(
Blockly
.
getMainWorkspace
(),
argCopy
);
};
f
.
isWrapped
=
true
;
return
f
;
...
...
appinventor/blocklyeditor/src/workspace_svg.js
View file @
112a65a0
...
...
@@ -483,10 +483,12 @@ Blockly.WorkspaceSvg.prototype.getFlydown = function() {
return
this
.
flydown_
;
};
Blockly
.
WorkspaceSvg
.
prototype
.
hideChaff
=
function
()
{
Blockly
.
WorkspaceSvg
.
prototype
.
hideChaff
=
function
(
opt_allowToolbox
)
{
this
.
flydown_
&&
this
.
flydown_
.
hide
();
this
.
typeBlock_
&&
this
.
typeBlock_
.
hide
();
this
.
backpack_
&&
this
.
backpack_
.
hide
();
if
(
!
opt_allowToolbox
)
{
// Fixes #1269
this
.
backpack_
&&
this
.
backpack_
.
hide
();
}
this
.
setScrollbarsVisible
(
true
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment