Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Virtual Keyboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
Escriptorium
Virtual Keyboard
Commits
e86aa428
Commit
e86aa428
authored
3 years ago
by
Valentin Rigal
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for the integrated build
parent
b2e3dcf0
No related branches found
No related tags found
2 merge requests
!4
Setup CI
,
!3
Setup the stack to use Vue in both the web extension and a regular html form
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/KeyboardDisplay.vue
+2
-3
2 additions, 3 deletions
src/components/KeyboardDisplay.vue
src/content/content.js
+4
-1
4 additions, 1 deletion
src/content/content.js
src/views/Home.vue
+1
-1
1 addition, 1 deletion
src/views/Home.vue
with
7 additions
and
5 deletions
src/components/KeyboardDisplay.vue
+
2
−
3
View file @
e86aa428
...
...
@@ -9,7 +9,7 @@
export
default
{
props
:
{
inputField
:
{
type
:
HTMLInputElement
,
type
:
[
HTMLInputElement
,
HTMLTextAreaElement
],
required
:
true
,
},
},
...
...
@@ -24,7 +24,6 @@ export default {
},
methods
:
{
addChar
(
char
)
{
console
.
log
(
"
adding
"
,
char
);
// Add a character to the input depending on selection position
const
start
=
this
.
inputField
.
selectionStart
;
const
value
=
this
.
inputField
.
value
;
...
...
@@ -39,7 +38,7 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
scoped
>
.virtual-keyboard
{
position
:
absolute
;
top
:
100%
;
...
...
This diff is collapsed.
Click to expand it.
src/content/content.js
+
4
−
1
View file @
e86aa428
...
...
@@ -3,7 +3,10 @@ import Keyboard from "../components/KeyboardDisplay.vue";
import
router
from
"
../router
"
;
import
store
from
"
../store
"
;
const
inputFields
=
document
.
getElementsByTagName
(
"
input
"
);
const
inputFields
=
[
...
document
.
getElementsByTagName
(
"
input
"
),
...
document
.
getElementsByTagName
(
"
textarea
"
),
];
let
keyboard
=
null
;
const
createKeyboard
=
(
input
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/views/Home.vue
+
1
−
1
View file @
e86aa428
...
...
@@ -7,7 +7,7 @@
<
script
>
// @ is an alias to /src
import
HelloWorld
from
"
@
/components/HelloWorld.vue
"
;
import
HelloWorld
from
"
..
/components/HelloWorld.vue
"
;
export
default
{
name
:
"
Home
"
,
...
...
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