File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,4 @@ import VisualKeyboard from "../visualKeyboard.js";
66
77export default interface EmbeddedGestureConfig {
88 createGlobeHint ?: ( vkbd : VisualKeyboard ) => GlobeHint ;
9- createKeyTip ?: ( vkbd : VisualKeyboard ) => KeyTip ;
10- startLongpress ?: ( vkbd : VisualKeyboard , key : KeyElement ) => PendingGesture ;
119}
Original file line number Diff line number Diff line change @@ -1711,10 +1711,6 @@ export default class VisualKeyboard extends EventEmitter<EventMap> implements Ke
17111711 * @returns
17121712 */
17131713 startLongpress ( key : KeyElement ) : PendingGesture {
1714- if ( this . config . embeddedGestureConfig . startLongpress ) {
1715- return this . config . embeddedGestureConfig . startLongpress ( this , key ) ;
1716- }
1717-
17181714 // First-level object/Promise: will produce a subkey popup when the longpress gesture completes.
17191715 // 'Returns' a second-level object/Promise: resolves when a subkey is selected or is cancelled.
17201716 let pendingLongpress = new InternalPendingLongpress ( this , key ) ;
@@ -1895,9 +1891,7 @@ export default class VisualKeyboard extends EventEmitter<EventMap> implements Ke
18951891 * Create a key preview element for phone devices
18961892 */
18971893 createKeyTip ( ) {
1898- if ( this . config . embeddedGestureConfig . createKeyTip ) {
1899- this . keytip = this . config . embeddedGestureConfig . createKeyTip ( this ) ;
1900- } else if ( this . device . formFactor == 'phone' ) {
1894+ if ( this . device . formFactor == 'phone' ) {
19011895 if ( this . keytip == null ) {
19021896 // For now, should only be true (in production) when keyman.isEmbedded == true.
19031897 let constrainPopup = this . isEmbedded ;
You can’t perform that action at this time.
0 commit comments