Skip to content

Commit

Permalink
避免横条遮挡键盘点击
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Dec 18, 2024
1 parent 350ab3f commit 821c819
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
package-lock.json
/dist
/docs

# local env files
.env.local
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ EnumKeyboardModel
- bbq10
- bbq20

[http://kylebing.cn/tools/bb-keyboard](http://kylebing.cn/tools/bb-keyboard)


<img width="1368" alt="Screenshot 2024-04-18 at 16 02 49" src="https://github.com/KyleBing/blackberry-keyboard/assets/12215982/e98b2cc2-ea9a-4cdd-b2ea-12e05aa85b2b">
<img width="1368" alt="Screenshot 2024-04-18 at 16 02 53" src="https://github.com/KyleBing/blackberry-keyboard/assets/12215982/4c63c26e-4966-4f72-8e5e-74361f5095ee">
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ onMounted(()=> {
a{
font-size: 12px;
text-decoration: underline;
color: white;
color: transparentize(white,0.6);
}
}
</style>
Expand Down
1 change: 1 addition & 0 deletions src/page/Divider/Divider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const props = defineProps<Props>()
<style lang="scss" scoped>
@import "../../scss/plugin";
.divider{
pointer-events: none;
height: 4px;
width: 100%;
background-color: white;
Expand Down
1 change: 1 addition & 0 deletions src/page/Divider/Divider9900-0.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SVG_ICONS from "@/assets/icons/SVG_ICONS.ts";
<style lang="scss" scoped>
@import "../../scss/plugin";
.divider{
pointer-events: none;
position: relative;
z-index: 100;
height: 40px;
Expand Down
1 change: 1 addition & 0 deletions src/page/Divider/Divider9900-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SVG_ICONS from "@/assets/icons/SVG_ICONS.ts";
<style lang="scss" scoped>
@import "../../scss/plugin";
.divider{
pointer-events: none;
position: relative;
z-index: 100;
height: 40px;
Expand Down
1 change: 1 addition & 0 deletions src/page/Divider/Divider9900-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SVG_ICONS from "@/assets/icons/SVG_ICONS.ts";
<style lang="scss" scoped>
@import "../../scss/plugin";
.divider{
pointer-events: none;
position: relative;
z-index: 100;
height: 40px;
Expand Down
1 change: 1 addition & 0 deletions src/page/Divider/Divider9900-3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SVG_ICONS from "@/assets/icons/SVG_ICONS.ts";
<style lang="scss" scoped>
@import "../../scss/plugin";
.divider{
pointer-events: none;
position: relative;
z-index: 100;
height: 40px;
Expand Down
8 changes: 6 additions & 2 deletions src/page/Index.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<template>
<div>
<ShoulderKey :is-show-button-name="false"/>
<div class="keyboard" :style="keyboardStyle" v-if="currentKeyboardModel === EnumKeyboardModel.bb9900">
<div
v-if="currentKeyboardModel === EnumKeyboardModel.bb9900"
class="keyboard" :style="keyboardStyle" >
<FunctionKey9900
@switchModel="switchModel"
:keyboard-model="currentKeyboardModel" />
<NormalKey9900 :keyboard-model="currentKeyboardModel"/>
<Divider99003 :keyboard-model="currentKeyboardModel" style="margin-top: -17px;"/>
<BottomKey style="margin-top: -25px;"/>
</div>
<div class="keyboard" :style="keyboardStyle" v-else>
<div
v-else
class="keyboard" :style="keyboardStyle">
<FunctionKey
@switchModel="switchModel"
:keyboard-model="currentKeyboardModel" />
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

"paths": {
"@/*": ["src/*"]
},
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down

0 comments on commit 821c819

Please sign in to comment.