mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 16:18:12 +08:00
Add support for handling MMB/RMB double click inputs (#1407)
* Add support for handling MMB/RMB double click inputs * Add todo comment * Enforce types --------- Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
co-authored by
0hypercube
parent
a112ab27cf
commit
b30488bbb7
@@ -1,4 +1,4 @@
|
||||
export function makeKeyboardModifiersBitfield(e: WheelEvent | PointerEvent | KeyboardEvent): number {
|
||||
export function makeKeyboardModifiersBitfield(e: WheelEvent | PointerEvent | MouseEvent | KeyboardEvent): number {
|
||||
return (
|
||||
// Shift (all platforms)
|
||||
(Number(e.shiftKey) << 0) |
|
||||
|
||||
Reference in New Issue
Block a user