mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 13:51:09 +01:00
Keyboard/mouse mode and keyboard support bugfixes
This commit is contained in:
committed by
Ken Powers
parent
ed55006f20
commit
2a0a73cfc1
@@ -1,4 +1,3 @@
|
||||
import { AnyAction } from 'redux';
|
||||
import { LocalizerType } from '../../types/Util';
|
||||
|
||||
// State
|
||||
@@ -11,6 +10,7 @@ export type UserStateType = {
|
||||
platform: string;
|
||||
regionCode: string;
|
||||
i18n: LocalizerType;
|
||||
interactionMode: 'mouse' | 'keyboard';
|
||||
};
|
||||
|
||||
// Actions
|
||||
@@ -18,12 +18,13 @@ export type UserStateType = {
|
||||
type UserChangedActionType = {
|
||||
type: 'USER_CHANGED';
|
||||
payload: {
|
||||
ourNumber: string;
|
||||
regionCode: string;
|
||||
ourNumber?: string;
|
||||
regionCode?: string;
|
||||
interactionMode?: 'mouse' | 'keyboard';
|
||||
};
|
||||
};
|
||||
|
||||
export type UserActionType = AnyAction | UserChangedActionType;
|
||||
export type UserActionType = UserChangedActionType;
|
||||
|
||||
// Action Creators
|
||||
|
||||
@@ -51,6 +52,7 @@ function getEmptyState(): UserStateType {
|
||||
ourNumber: 'missing',
|
||||
regionCode: 'missing',
|
||||
platform: 'missing',
|
||||
interactionMode: 'mouse',
|
||||
i18n: () => 'missing',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user