Skip to content

Harmonize global keyboardCobntroller() function #183

@falue

Description

@falue

each and every index.html file should have a "onkeydown" attribute which leads to a function that detects the iframe-depth.

eg. chat in website in browser in window detects the main keyboardController() function in "parent.parent.parent.keyboardController()"

which means a function in tools/general.js is doing that and triggers the main function after program-specific functions are triggered.

function localKeyboardController(event) {
  1. do stuff for this current program, eg. arrowLeft/right for imageviewer
  2. always send event to parent.keyboardController() by:  
  detectIframeDepth().keyboardController(event);  // or so
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    CRITICALoh no, maybe do that thing right away or don'tEnhancementSmall feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions