keyremapping: Don't remap f-keys when the bank pin interface is open
This commit is contained in:
@@ -138,7 +138,10 @@ public class KeyRemappingPlugin extends Plugin
|
||||
// Most chat dialogs with numerical input are added without the chatbox or its key listener being removed,
|
||||
// so chatboxFocused() is true. The chatbox onkey script uses the following logic to ignore key presses,
|
||||
// so we will use it too to not remap F-keys.
|
||||
return isHidden(WidgetInfo.CHATBOX_MESSAGES) || isHidden(WidgetInfo.CHATBOX_TRANSPARENT_LINES);
|
||||
return isHidden(WidgetInfo.CHATBOX_MESSAGES) || isHidden(WidgetInfo.CHATBOX_TRANSPARENT_LINES)
|
||||
// We want to block F-key remapping in the bank pin interface too, so it does not interfere with the
|
||||
// Keyboard Bankpin feature of the Bank plugin
|
||||
|| !isHidden(WidgetInfo.BANK_PIN_CONTAINER);
|
||||
}
|
||||
|
||||
private boolean isHidden(WidgetInfo widgetInfo)
|
||||
|
||||
Reference in New Issue
Block a user