Skip to content

a crude to add configurable keybindings on the browser

License

Notifications You must be signed in to change notification settings

ayc/BrowserKeyBinds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrowserKeyBinds

a crude to add configurable keybindings on the browser

Markdown

import { UserInput } from "./userinput.js"

var userInput = new UserInput("mainmenu")

var myalert = function(){
	alert('I am an alert!')
}

var scrollmove = function scrollmove(e){
	console.log('scrollmove', e)
}

userInput.mouseWheel(scrollmove,{context:"ROOT"});
userInput.keyDown("A", myalert, {
	context: "ROOT",
	configurable: true,
	textDefinition: "test alert with button A"
})

console.log(userInput);

Support or Contact

Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.

About

a crude to add configurable keybindings on the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published