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
fd7e5f68
Commit
fd7e5f68
authored
Mar 04, 2019
by
Evan W. Patton
Committed by
Jeffrey Schiller
Mar 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Closure Library to fix typeblocking autocomplete
Change-Id: Ia732cb6a35725ef49bb5605f1ab0bc6a808fe33b
parent
8ebc19f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
.gitmodules
.gitmodules
+1
-1
appinventor/blocklyeditor/src/typeblock.js
appinventor/blocklyeditor/src/typeblock.js
+9
-1
appinventor/lib/closure-library
appinventor/lib/closure-library
+1
-1
No files found.
.gitmodules
View file @
fd7e5f68
...
...
@@ -3,4 +3,4 @@
url = https://github.com/mit-cml/blockly.git
[submodule "appinventor/lib/closure-library"]
path = appinventor/lib/closure-library
url = https://github.com/
google
/closure-library.git
url = https://github.com/
mit-cml
/closure-library.git
appinventor/blocklyeditor/src/typeblock.js
View file @
fd7e5f68
...
...
@@ -170,6 +170,10 @@ Blockly.TypeBlock.prototype.handleKey = function(e){
case
34
:
// Page Down
case
35
:
// Shift
case
36
:
// End
case
37
:
// Left Arrow
case
38
:
// Up Arrow
case
39
:
// Right Arrow
case
40
:
// Down Arrow
case
45
:
// Ins
case
91
:
// Meta
case
112
:
// F1
...
...
@@ -197,8 +201,12 @@ Blockly.TypeBlock.prototype.handleKey = function(e){
// Can't seem to make Firefox display first character, so keep all browsers from automatically
// displaying the first character and add it manually.
e
.
preventDefault
();
if
(
e
.
charCode
==
0
)
{
// Don't try to render a non-printing character.
return
;
}
goog
.
dom
.
getElement
(
this
.
inputText_
).
value
=
String
.
fromCharCode
(
e
.
charCode
!=
null
?
e
.
charCode
:
e
.
key
c
ode
);
String
.
fromCharCode
(
e
.
charCode
!=
null
?
e
.
charCode
:
e
.
key
C
ode
);
}
};
...
...
closure-library
@
91eccc01
Subproject commit
effb4062e34576a011e788a0d33c1433a677f940
Subproject commit
91eccc0185c296aa9eda3e025cf186469895e84b
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