Make everything use the KeyBindingManager
(#7907)
This commit is contained in:
parent
5f8441216c
commit
df591ee835
37 changed files with 529 additions and 277 deletions
|
@ -149,16 +149,11 @@ const roomBindings = (): KeyBinding[] => {
|
|||
};
|
||||
|
||||
const navigationBindings = (): KeyBinding[] => {
|
||||
const bindings = getBindingsByCategory(CategoryName.NAVIGATION);
|
||||
return getBindingsByCategory(CategoryName.NAVIGATION);
|
||||
};
|
||||
|
||||
bindings.push({
|
||||
action: KeyBindingAction.CloseDialogOrContextMenu,
|
||||
keyCombo: {
|
||||
key: Key.ESCAPE,
|
||||
},
|
||||
});
|
||||
|
||||
return bindings;
|
||||
const accessibilityBindings = (): KeyBinding[] => {
|
||||
return getBindingsByCategory(CategoryName.ACCESSIBILITY);
|
||||
};
|
||||
|
||||
const callBindings = (): KeyBinding[] => {
|
||||
|
@ -177,6 +172,7 @@ export const defaultBindingsProvider: IKeyBindingsProvider = {
|
|||
getRoomListBindings: roomListBindings,
|
||||
getRoomBindings: roomBindings,
|
||||
getNavigationBindings: navigationBindings,
|
||||
getAccessibilityBindings: accessibilityBindings,
|
||||
getCallBindings: callBindings,
|
||||
getLabsBindings: labsBindings,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue