Merge pull request #3436 from fufesou/fix/menu_options
fix keyboard options, revert change
This commit is contained in:
		
						commit
						492ca411e9
					
				@ -1561,9 +1561,8 @@ class _KeyboardMenu extends StatelessWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    // Do not check permission here?
 | 
					    var ffiModel = Provider.of<FfiModel>(context);
 | 
				
			||||||
    // var ffiModel = Provider.of<FfiModel>(context);
 | 
					    if (ffiModel.permissions['keyboard'] == false) return Offstage();
 | 
				
			||||||
    // if (ffiModel.permissions['keyboard'] == false) return Offstage();
 | 
					 | 
				
			||||||
    if (stateGlobal.grabKeyboard) {
 | 
					    if (stateGlobal.grabKeyboard) {
 | 
				
			||||||
      if (bind.sessionIsKeyboardModeSupported(id: id, mode: _kKeyMapMode)) {
 | 
					      if (bind.sessionIsKeyboardModeSupported(id: id, mode: _kKeyMapMode)) {
 | 
				
			||||||
        bind.sessionSetKeyboardMode(id: id, value: _kKeyMapMode);
 | 
					        bind.sessionSetKeyboardMode(id: id, value: _kKeyMapMode);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user