Skip to main content
Module

x/denops_std/function/mod.ts>getcharmod

📚 Standard module for denops.vim
Go to Latest
function getcharmod
import { getcharmod } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

The result is a Number which is the state of the modifiers for the last obtained character with getchar() or in another way. These values are added together: 2 shift 4 control 8 alt (meta) 16 meta (when it's different from ALT) 32 mouse double click 64 mouse triple click 96 mouse quadruple click (== 32 + 64) 128 command (Macintosh only) Only the modifiers that have not been included in the character itself are obtained. Thus Shift-a results in "A" without a modifier. Returns 0 if no modifiers are used.

Returns

Promise<number>