Skip to content

Commit d34d7d1

Browse files
committed
Use mdx-code-block escape hatch for Crowdin
1 parent 62179b7 commit d34d7d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/developing/keyboard.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Since `enterkeyhint` is a global attribute, it can be used on Ionic components s
103103
For a list of accepted values, see the <a href="https://html.spec.whatwg.org/dev/interaction.html#input-modalities:-the-enterkeyhint-attribute" target="_blank" rel="noreferrer">enterkeyhint Standard</a>.
104104

105105
### Usage
106+
107+
````mdx-code-block
106108
<Tabs
107109
defaultValue="javascript"
108110
values={[
@@ -149,6 +151,7 @@ For a list of accepted values, see the <a href="https://html.spec.whatwg.org/dev
149151
```
150152
</TabItem>
151153
</Tabs>
154+
```
152155
153156
<Codepen user="ionic" slug="GRpWyRB" height="350"></Codepen>
154157
@@ -177,6 +180,8 @@ When running an app in Capacitor or Cordova, it is possible to hide the accessor
177180
Detecting the presence of an on-screen keyboard is useful for adjusting the positioning of an input that would otherwise be hidden by the keyboard. For Capacitor and Cordova apps, developers typically rely on native keyboard plugins to listen for the keyboard lifecycle events. For apps running in a mobile browser or as a PWA, developers can use the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Visual_Viewport_API" rel="noreferrer" target="_blank">Visual Viewport API</a> where supported. Ionic Framework wraps both of these approaches and emits `ionKeyboardDidShow` and `ionKeyboardDidHide` events on the `window`. The event payload for `ionKeyboardDidShow` contains an approximation of the keyboard height in pixels.
178181
179182
### Usage
183+
184+
````mdx-code-block
180185
<Tabs
181186
defaultValue="javascript"
182187
values={[
@@ -248,5 +253,6 @@ watch(keyboardHeight, () => {
248253
```
249254
</TabItem>
250255
</Tabs>
256+
```
251257
252258
> For apps running in a mobile web browser or as a PWA, Keyboard Lifecycle Events are only supported on Chrome 62+ and iOS Safari 13.0+.

0 commit comments

Comments
 (0)