Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
70681603
Commit
70681603
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
62f862e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/engines/default/engine/ui/WebView.lua
+0
-3
0 additions, 3 deletions
game/engines/default/engine/ui/WebView.lua
src/web.c
+1
-1
1 addition, 1 deletion
src/web.c
with
1 addition
and
4 deletions
game/engines/default/engine/ui/WebView.lua
+
0
−
3
View file @
70681603
...
@@ -132,14 +132,11 @@ function _M:generate()
...
@@ -132,14 +132,11 @@ function _M:generate()
elseif
core
.
webview
.
kind
==
"cef3"
then
elseif
core
.
webview
.
kind
==
"cef3"
then
function
self
.
key
.
receiveKey
(
_
,
sym
,
ctrl
,
shift
,
alt
,
meta
,
unicode
,
isup
,
key
,
ismouse
,
keysym
)
function
self
.
key
.
receiveKey
(
_
,
sym
,
ctrl
,
shift
,
alt
,
meta
,
unicode
,
isup
,
key
,
ismouse
,
keysym
)
if
not
self
.
view
then
return
end
if
not
self
.
view
then
return
end
print
(
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
,
isup
,
keysym
)
if
unicode
then
if
unicode
then
keysym
=
unicode
:
sub
(
1
):
byte
()
keysym
=
unicode
:
sub
(
1
):
byte
()
print
(
"==uni"
,
keysym
,
unicode
)
self
.
view
:
injectKey
(
true
,
keysym
,
0
,
unicode
)
self
.
view
:
injectKey
(
true
,
keysym
,
0
,
unicode
)
return
return
end
end
print
(
"==not"
,
keysym
)
self
.
view
:
injectKey
(
isup
,
keysym
,
0
,
""
)
self
.
view
:
injectKey
(
isup
,
keysym
,
0
,
""
)
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
src/web.c
+
1
−
1
View file @
70681603
...
@@ -180,7 +180,7 @@ static int lua_web_inject_key(lua_State *L) {
...
@@ -180,7 +180,7 @@ static int lua_web_inject_key(lua_State *L) {
const
char
*
uni
=
NULL
;
const
char
*
uni
=
NULL
;
size_t
unilen
=
0
;
size_t
unilen
=
0
;
if
(
lua_isstring
(
L
,
5
))
uni
=
lua_tolstring
(
L
,
5
,
&
unilen
);
if
(
lua_isstring
(
L
,
5
))
uni
=
lua_tolstring
(
L
,
5
,
&
unilen
);
printf
(
"???=== %d
\n
"
,
scancode
);
te4_web_inject_key
(
view
,
scancode
,
asymb
,
uni
,
unilen
,
up
);
te4_web_inject_key
(
view
,
scancode
,
asymb
,
uni
,
unilen
,
up
);
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment