Commit 32290d5d authored by Luxferre's avatar Luxferre
Browse files

Fixed dualsim bug, added About menu

parent 8c7a1885
......@@ -44,7 +44,6 @@
}, function(){
restoreSoftKeys()
logRecordView.classList.remove('translucent')
cb(-1)
}
)
AppMenu.open('simselect')
......@@ -278,6 +277,14 @@
toast('Stock records imported')
})
}])
opts.push(['About', function(){
navigator.mozApps.getSelf().then(function(app){
var mfst = app.manifest
var aboutText = mfst.name + ' v' + mfst.version + ' by ' + mfst.developer.name
toast(aboutText)
})
}])
AppMenu.register('mainmenu', opts,
function() { //on open
curId = mainList.getActiveId()
......
......@@ -16,7 +16,7 @@
}
function keyHandlers(e) {
if(e.repeat) return false
if(e.repeat || e.key === 'MicrophoneToggle') {e.preventDefault();return false}
switch(e.key) {
case 'ArrowUp':
if(menuList.hasDisplayableItems()) {
......@@ -66,7 +66,7 @@
menuElem = elem
menuElem.dataset.menuKey = ''
menuList = new DynaList(menuElem)
menuList.maxElemsToRender = 7
menuList.maxElemsToRender = 8
menuOpen = false
registeredMenus = {}
currentActions = []
......
......@@ -11,6 +11,7 @@
}
function handleLP(e) {
if(e.key === 'MicrophoneToggle') {e.preventDefault();return false}
if(!e.repeat) {
callAllHandlers(e, false);
curTm[e.key] = {tm: global.setTimeout(function() {
......
{
"version": "0.0.9",
"version": "0.0.10",
"name": "FastLog",
"description": "A lightweight alternative to stock KaiOS call log",
"launch_path": "/index.html",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment