mirror of
https://github.com/vale981/tridactyl
synced 2025-03-12 21:46:40 -04:00
12 lines
357 B
TypeScript
12 lines
357 B
TypeScript
import {hasModifiers} from '../keyseq'
|
|
|
|
// Placeholder - should be moved into generic parser
|
|
export function parser(keys){
|
|
const response = {keys: [], ex_str: undefined}
|
|
if (! hasModifiers(keys[0])) {
|
|
if (keys[0].key === 'Escape') {
|
|
return {keys: [], ex_str: 'unfocus'}
|
|
}
|
|
}
|
|
return {keys: [], ex_str: undefined}
|
|
}
|