# Immersive Mode Issue APDE

**URL:** <https://discourse.processing.org/t/immersive-mode-issue-apde/27590>\
**Category:** Processing for Android\
**Created:** [February 4, 2021, 7:57pm UTC](https://discourse.processing.org/t/immersive-mode-issue-apde/27590 "2021-02-04T19:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [February 4, 2021, 7:57pm UTC](https://discourse.processing.org/t/immersive-mode-issue-apde/27590/1 "2021-02-04T19:57:36Z")

</div>

Dear all

I’m just tinkering with APDE to try the openKeyboard() and closeKeyboard() methods.

When I create a sketch such as below, the navigation and notification bars are hidden, so I guess I’m in Immersive Mode, which is what I want. But when openKeyboard () is called they both appear, and after calling closeKeyboard() they are still there … as if immersive mode has been disabled. Is this a bug in the keyboard methods and is there a way to get back to immersive mode?

```auto
boolean kbdOn = false;

void setup(){
  fullScreen();
  fill(255);
}

void draw(){
  background (0);
// Just for something to do ...
  rect(mouseX, mouseY, 80,80);
}

void touchEnded(){
  if (!kbdOn){
    openKeyboard();
  }
  else {
    closeKeyboard();
  }
}

```
