File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,21 @@ CLASS z2ui5_cl_demo_app_352 IMPLEMENTATION.
3737 METHOD display_view .
3838
3939 DATA (view ) = z2ui5_cl_xml_view=>factory( ).
40+
41+ view->_generic( name = `script`
42+ ns = `html` )->_cc_plain_xml( `z2ui5.afterBE = (id , mode) => { ` &&
43+ `debugger;` &&
44+ `var input = z2ui5.oView.byId(id).getDomRef();` &&
45+ `input = input.childNodes[0].childNodes[0];` &&
46+ `input.setAttribute("inputmode" , mode);` &&
47+ ` alert("inputmode changed to" + mode); }` ).
48+
4049 DATA (page ) = view->shell(
4150 )->page( title = 'abap2UI5 - Softkeyboard on/off'
4251 navbuttonpress = client->_event( 'BACK' )
43- shownavbutton = client->check_app_prev_stack( ) ).
44-
45- page->_z2ui5( )->focus( focusid = `ZINPUT`
46-
52+ shownavbutton = client->check_app_prev_stack( )
53+ )->_z2ui5( )->focus( focusid = `ZINPUT`
4754 )->simple_form( editable = abap_true
48-
4955 )->content( 'form'
5056 )->title( 'Keyboard on/off'
5157 )->label( 'Input'
@@ -63,7 +69,7 @@ CLASS z2ui5_cl_demo_app_352 IMPLEMENTATION.
6369
6470 CASE client->get( )-event.
6571 WHEN 'CALL_KEYBOARD' .
66-
72+ client->follow_up_action( `z2ui5.afterBE("ZINPUT", "none");` ).
6773 WHEN 'BACK' .
6874 client->nav_app_leave( ).
6975 ENDCASE .
You can’t perform that action at this time.
0 commit comments